Preferred vertical position of the sidenote (the sidenote will position at this offset if possible)Ĭustom data (this will be passed to and of the wrapper) Sidenote id used as the unique identifier of this sidenote (should be unique) is the current item to process (as SidenotesWrapper iterate over Argument.List of items corresponding to wanted sidenotesĪction raised when using select exposed action on Sidenote componentĪction raised after sidenotes finished moving (called after load, selection, unselection, or sidenote size change)Īction raised when using unselect exposed action on Sidenote component Vertical spacing added between every passed to #each helper when iterating over It will be used to determine if render is needed on change (See #each doc cf. Selected sidenote id (presence of this property will enable controlled mode)ĭefault selected sidenote id on wrapper load Īs two actions select and unselect are exposed in each sidenote component, calling them will raise an action on the wrapper (respectively onSelect and onUnselect) with all the data necessary to be aware of which sidenote has been selected ( Components details SidenotesWrapper Argument This has to match the argument id passed to a component. The controlled mode makes it possible to managed which side note is selected with an argument named selectedSidenoteId. Controlled & Non-controlled modes Controlled mode There are two ways of using this addon, controlled and non-controlled mode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |