awsc.base_control.tagged_column_generator
- awsc.base_control.tagged_column_generator(name, tagname, weight=None, sort_weight=None, hidden=False, size=30, default='', taglist_key='Tags')
Shortcut for generating a field for tag_finder_generator. Eliminates a minor amount of code duplication.
- Parameters:
- namestr
The name of the tagged field.
- tagnamestr
The name of the tag to find.
- weightint, optional
The weight of the column.
- sort_weightint, optional
The weight of the column for sorting.
- sizeint, default=30
The size of the column in characters.
- hiddenbool, default=False
Is this a hidden column?
- defaultstr
The default value if the tag is not found.
- taglist_keystr
The key for the tag in the JSON document.
- Returns:
- dict
A dict to insert into the columns map of a ResourceLister.