How do I completely remove the label or the label's spacing in angular-formly form? -


using angular-formly, i'm trying build form, if label removed in fields json, there no padding or spacing given label in rendered html.

here example of actual form , 'desired' form: js bin

the best solution require pull request template library's label wrapper template use ng-if hide label if 1 not provided.

if don't want deal that, can choose 1 of these options:

  1. set wrapper null field. lose other wrappers (like 1 adds has-error)
  2. create own type allows specify own wrappers.

both of these demonstrated here:

https://jsbin.com/quceqi/edit?html,js,output


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -