You need to sign in to do that
Don't have an account?
krishna casukhela
Button text to show bold after button disable
<aura:attribute name="disableClick" type="Boolean"/>
<lightning:button variant="base" label="showMe" title="clickMe" disabled="{!v.disableClick}" onclick="{!c.handleClick}"
I am setting component.set("v.disableClick",true) based on some logic in the code.
so the button text becomes unreadable.
But I want the button text to be little bolder so that its at least readable
Please let me know how to do this
<lightning:button variant="base" label="showMe" title="clickMe" disabled="{!v.disableClick}" onclick="{!c.handleClick}"
I am setting component.set("v.disableClick",true) based on some logic in the code.
so the button text becomes unreadable.
But I want the button text to be little bolder so that its at least readable
Please let me know how to do this
Please use below code:-
CSS Stylesheet:
Component:
JS Controller:
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
Thanks for the reply
Initally on page Load the button is disabled. so the text is not much readable.
There is an lightning input field which has got an onchangle handler.
<lightning:input label="someMe" onchange="{!c.handleChange}" aura:id="someMe" value="{!myInput}"/>
when the text in lightning input changes the onchange handler is fired. so when the text changes only then I want the the button text to be a little bold.
Can you tell how to do this
CSS Stylesheet:
Component: JS Controller:
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh