kartik-v / yii2-builder

Build forms (single or tabular) easily for Yii Framework 2.0.
http://demos.krajee.com/builder
Other
100 stars 50 forks source link

Don't render inactive attributes by default. #104

Closed SamMousa closed 8 years ago

SamMousa commented 8 years ago

Yii2 requires us to define which attributes are active for each scenario.

It would be ideal if the form builder could skip attributes that are not active for the current scenario.

Alternatively this could be a boolean option activeOnly for the form builder (and if you default it to false) it would not affect backwards compatibility.

I can make a PR if you think this is a nice feature.

kartik-v commented 8 years ago

Sure you could submit a PR.

kartik-v commented 8 years ago

Closed via visible property added newly as an attribute setting. Refer #108 and #110