@matdjon

@matdjon

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Accordion inside another accordion #111375
    matdjon
    Participant

    I’ve updated the example to reproduce the log.

    You need to expand/collapse the sub accordion item and the message will be output to console.

    in reply to: Accordion inside another accordion #111368
    matdjon
    Participant

    Good day,

    On a side note, why does this log appeared in the console when I interact with the sub accordion? Sub accordion is the accordion that is inside another accordion.

    smart-accordion: Out of bound index/indexes in “expand” method.

    smart-accordion: Out of bound index/indexes in “collapse” method.

    in reply to: Accordion inside another accordion #111361
    matdjon
    Participant

    Solved.

    Apparently in default mode, one accordion item will always be opened, and cannot be closed.
    Just add another item to the sub accordion, or change the expand mode to multiple.

    in reply to: tree label onEdit event #109726
    matdjon
    Participant

    Hi Markov,

    You can compare this with my codepen.

    Try to edit the label in each demo.

    in reply to: tree label onEdit event #109717
    matdjon
    Participant

    Understood Markov.

    but when the label is edited, it will show full html element including the <i>icon</i>

    Is there any plan to address this?

    in reply to: tree label onEdit event #109708
    matdjon
    Participant

    For event fired when user editing, I realized I can manually add event listener to input element with [smart-id = editInput]. When user started editing, I can use focus and when finished editing, blur can be used.

    My intention is to add icon or img to the side of smart tree, but when the label is edited, it will show full html element including the <i>icon</i>. I just want to edit the text. An example can be seen on this codepen. But of course, it will be better if this use case is officially supported.

    ps: my boss won’t let me use this code because as she said – “this is cheating”. She wanted to use something that is a proper implementation of smart tree itself.

    in reply to: Multiple column’s datafields #109624
    matdjon
    Participant

    Understood. Thanks for the quick reply Markov.

    in reply to: Smart table refresh() method #109362
    matdjon
    Participant

    Hi Markov,

    Thanks for the detailed explanation. For context, I am asking about the refresh method because I want to refresh my table with and updated data, i.e. new table row. But I figured that I just need to send new/updated array to the table dataSource and the table will automatically update itself.

    in reply to: Create double rows inside cells #109319
    matdjon
    Participant

    Thanks Markov and ivanpeevski for the helpful input.

    My code is working now.
    From my understanding, the templateElement is intended for a short html code, while formatFunction is for an elaborate, long html lines. Is this correct?

    in reply to: Create double rows inside cells #109302
    matdjon
    Participant

    the page is very broad. can I get a more specific example?

    And also I try to find the documentation for templateElement and formatFunction but to no avail.

    in reply to: Create double rows inside cells #109299
    matdjon
    Participant

    can’t embed the image. the link is https://imgur.com/O5wq5bc

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