powered by
Add a prefix and suffix to an id
idAddAffixes(prefix, id, suffix, prefix_sep = "X", suffix_sep = "-")
A string.
A string, the prefix to add.
A string to add a prefix and suffix to.
A string, the suffix to add.
A string, the prefix separator to use. This should be different than suffix_sep.
A string, the suffix separator to use. This should be different than prefix_sep.
idAddAffixes("group1", "example", 1)
Run the code above in your browser using DataLab