•  
      request #31583 Lazybox big clean-up
    Infos
    #31583
    Joris MASSON (jmasson)
    2023-05-22 10:50
    2023-04-19 16:35
    33186
    Details
    Lazybox big clean-up

    As part of story #31537 and story #28823, we want to reuse Lazybox as a cleaner and simpler alternative to Select2. We also need to add some functionality to it ("create a new item" button).

    The current state of the Lazybox code gives us a hard time to add functionality, as everything depends on Elements that are bounced around, mutated, some events are attached to them, etc. All of this is done on several different classes. The current clean-up effort aims to:

    1. use a reactive templating library instead of the vanilla dom API. Stop managing Elements and instead declare the HTML template and attach handlers to it
    2. expose Lazybox as a custom element instead of a function. Users will no longer need to worry about handling destroy(), will no longer need to create an empty <select> element to wrap it, and can still attach callbacks and customize its behaviour.
    TLP
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2023-05-15
    Attachments
    Empty
    References
    Referencing request #31583

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2023-04-19 16:50
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes