Visual Builder

Get Involved. Join the Conversation.

Topic

    Vishnu Mishra
    Event for Table Row DeselectionAnswered
    Topic posted October 17, 2019 by Vishnu MishraRed Ribbon: 250+ Points, tagged JET 
    14 Views, 2 Comments
    Title:
    Event for Table Row Deselection
    Summary:
    Need to know if there's an event which is fired when a row is deselected in a table.
    Content:

    Hi,

    I have two queries:

    (1) Is there any event which is fired when a row in a table is deselected? I have a single-select table where selecting a row enables a button. However, deselecting a row, that is, when no row is selected in that table, should disable the button. Is there any event which can handle this? If no, is there any workaround for this?

    (2) Is it possible to automatically deselect a row whenever the use clicks somewhere else on the page, like on an empty space with no UI element?

    Regards,
    Vishnu

    Version:
    19.1.3.11

    Best Comment

    Duncan Mills

    Yes the selection event is triggered when the user un-selects a row - the value payload will reflect what selection is left - so if this was a single selection table then the $event.detail.value will be an empty array 

    For 2 no it's not automatic although you could I'm sure use blur click and focus events to set this up.  

    Comment

     

    • Duncan Mills

      Yes the selection event is triggered when the user un-selects a row - the value payload will reflect what selection is left - so if this was a single selection table then the $event.detail.value will be an empty array 

      For 2 no it's not automatic although you could I'm sure use blur click and focus events to set this up.