How to Create Snippet Options in Odoo | Odoo Snippets

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024
  • Options enable publishers to edit a snippet’s look mistreatment the web site Builder’s UI. mistreatment web site Builder functionalities, you'll produce piece choices simply and mechanically add them to the UI.
    Options cluster properties
    Options are wrapped in teams. teams will have properties that outline however the enclosed choices can act with the computer programme.
    data-selector="[css selector(s)]"
    Bind all the choices enclosed into the cluster to a selected part.
    data-js=" custom technique name "
    is employed to bind custom Javascript strategies.
    data-drop-in="[css selector(s)]"
    Defines the list of components wherever the piece is born into.
    data-drop-near="[css selector(s)]"
    Defines the list of components that the piece is born beside.
    Default option strategies
    Options apply commonplace CSS categories to the piece. counting on the tactic that you just opt for, the UI can behave otherwise.
    data-select-class="[class name]"
    additional data-select-class within the same cluster defines a listing of categories that the user will opt to apply. just one possibility is enabled at a time.
    data-toggle-class="[class name]"
    The data-toggle-class is employed to use one or additional CSS categories from the list to a piece. Multiple alternatives are applied right away.
    #odoo #odoosnippet

Комментарии •