You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use this CC Tool sample configuration and enhance this module to read the default configurations for the modules to be cloned from his own configuration.
Currently the crud_links module can only clone bind-filter and bind-table-crud modules. You read the above configuration like this: when the crud_links module wants to clone a data_filter module, use as the default config the configuration under clones.filter.config
target is the selector or DOM reference where you want the cloned module to be loaded (can be the same selector since modules are always appended)
miidToClone is the miid of the module we want to clone. This must exist in the application.json and is read form the clones.filter.miid (same for clones.table.miid)
miidSufix is the suffix used to generate the miid of the new cloned module. (newMiid = miidToClone + miidSuffix)
newConfig is the dynamic configuration used during cloning to initialize the cloned module. This you also take from the configuration option: clones.filter.config or clones.table.config
callback is an optional callback function called after the initialization (HTML and init function) of the cloned module is done.
The text was updated successfully, but these errors were encountered:
Use this CC Tool sample configuration and enhance this module to read the default configurations for the modules to be cloned from his own configuration.
The new configuration options look like:
Currently the crud_links module can only clone bind-filter and bind-table-crud modules. You read the above configuration like this: when the crud_links module wants to clone a data_filter module, use as the default config the configuration under
clones.filter.config
To clone a module use the
M.clone
function:target
is the selector or DOM reference where you want the cloned module to be loaded (can be the same selector since modules are always appended)miidToClone
is the miid of the module we want to clone. This must exist in theapplication.json
and is read form theclones.filter.miid
(same forclones.table.miid
)miidSufix
is the suffix used to generate the miid of the new cloned module. (newMiid = miidToClone + miidSuffix
)newConfig
is the dynamic configuration used during cloning to initialize the cloned module. This you also take from the configuration option:clones.filter.config
orclones.table.config
callback
is an optional callback function called after the initialization (HTML and init function) of the cloned module is done.The text was updated successfully, but these errors were encountered: