Component Config Children
Overview
Directives Property
The directives property contains various properties that indicates to the platform how the component should
be handled. For instance, if you want to prevent a user from being able to delete a component, you can
add the deletable property to the directives object and set it to false.
A sample directives property in the config.
directives:{
deletable:false,
viewable:false
}
Some directives are accomplished through the presence of the component lifecycle methods. For instance,
there is no need to have a selectable directive since a component is only selectable if the $select
method is present on the component. However, it is necessary to have a deletable directive even though there
is a $remove method on the component, because the $remove method is required even if the user is not allowed
to delete the component themselves. (for instance, if the component is in a container that can be deleted or
is being reloaded for some reason, the $remove
method is needed.)