Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This request includes a number of changes to the helper functions.
...
: The most important fix is the handling of optional arguments and substituting component defaults when necessary. The argumentsstyle
andoptions
can be passed using the...
. Several newdatatable_helpers
functions and objects were created to validate input arguments. First, thedatatable_helpers$defaults
object contains all of the component defaults forstyle
andoptions
. These lists are used in the newdatable_helpers$validate_props
function which evaluates objects passed into...
and substitutes missing props and values if missing. There are two new optionsstyle$enabled
andoptions$loadDependency
.enabled
, ifFALSE
, removes all class attributes from the table and prevents the loading of all dependencies (i.e., css). This is useful for users that may want to convert a table to a pure html markup. The argumentloadDependency
can also be used to prevent the loading of css files, but still apply class attributes. Whenenabled
isFALSE
, it will override any other css setting. Please note the usage of the validation function in the primary function.set_table_attributes
was created to process attributes applied to the parent element i.e.,<table>
. At the moment, this includesid
andclass
, but more will be added in the future.Also, the package version number was incremented from
0.1.1
to0.1.2