applyTemplate {imola} | R Documentation |
Apply a template to a attribute list
Description
Merges a set of attributes with a given template. To avoid redundant attributes being added to the final list, a list of default values (based of the specific panel creation callback formals) is used to validate the need of a argument value in the final list.
Usage
applyTemplate(attributes, template, defaults, type)
Arguments
attributes |
The manually given attribute values that will take priority during the merge. |
template |
The name of the template to merge, or a template object. |
defaults |
Default attribute values to ignore from attributes. |
type |
The type of css grid of the template. |
Value
A named list of css attributes that can be used to generate a html element style rules of the given type.
[Package imola version 0.5.0 Index]