How to add text for button? #4295
Unanswered
senthil177cse
asked this question in
Q&A
Replies: 1 comment 8 replies
-
@artf any update of this ? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to change the button content text instead of "Submit" i need to change the text...
code has pasted on below... can you please help me on this?
this.editor.BlockManager.add('custom_button_block', {
label:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 9c0-.6-.5-1-1.3-1H3.4C2.5 8 2 8.4 2 9v6c0 .6.5 1 1.3 1h17.4c.8 0 1.3-.4 1.3-1V9zm-1 6H3V9h18v6z"></path><path d="M4 11.5h16v1H4z"></path></svg><div class="gjs-block-label">Buitton</div>
,order: 2,
category: 'Component Block',
draggable: true,
attributes: {
class: '',
},
content:
<button type="button">Submit</button>
});
Beta Was this translation helpful? Give feedback.
All reactions