HTML Elements Forums Buttons Changing state on button's label click

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 6 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #99567

    pcng618
    Participant

    Hi,

    I use smart-radio-button elements in my project. I want to change button’s state by clicking not only on the button shape but also on its label. Are there any settings that can help to do this?

    #99568

    ivailo
    Participant

    Hi pcng618,

    smart-radio-button has enableContainerClick property for this purpose.
    It allows clicks on the label to be handled the same way as clicks on the radio button’s shape.

    Here is a demo:

    <smart-radio-button enable-container-click>Radio button 1</smart-radio-button>
    <smart-radio-button enable-container-click>Radio button 2</smart-radio-button>

    Best Regards,
    Ivailo Ivanov

    Smart HTML Elements Team
    https://www.htmlelements.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.