feat(api): Added abilty to specify a css class for markdown field
ref: #248 #385 #388 nofusscomputing/centurion_erp_ui#4 nofusscomputing/centurion_erp_ui#26
This commit is contained in:
@ -273,6 +273,12 @@ class ReactUIMetadata(OverRideJSONAPIMetadata):
|
||||
|
||||
field_info["required"] = getattr(field, "required", False)
|
||||
|
||||
if hasattr(field, 'style_class'):
|
||||
|
||||
field_info["style"]: dict = {
|
||||
'class': field.style_class
|
||||
}
|
||||
|
||||
attrs = [
|
||||
"read_only",
|
||||
"write_only",
|
||||
|
Reference in New Issue
Block a user