Skip to content

Should be able to customize the name, type for prop attrs reflection #2

@josnin

Description

@josnin

If not define, props will be dynamically created and type will be calculated based on the return JSON parse value

kebab attrs will automatically convert to CamelCase for props naming

How to customize? see below

foo = propReflect(false, { 
                       attr: 'is-display', 
                       type: Boolean }
                    )

IF type is not provided, then it will try to JSON parse

foo = propReflect(false, {  attr: 'is-display' } )                   

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions