SimonBiggs / scriptedforms

Quickly create live-update GUIs for Python packages using Markdown and simple HTML elements.
Apache License 2.0
508 stars 34 forks source link

Change 'name' to 'label' #193

Closed SimonBiggs closed 6 years ago

SimonBiggs commented 6 years ago

Name parameter might be confused with 'variable name'. In reality that parameter is just a label using <mat-label>. As such I should instead change the parameter to 'label'.

Will have 'name' and 'label' both work for a time with the 'name' parameter being removed in version 0.10.0. Using 'name' will print a deprecation notice.

SimonBiggs commented 6 years ago

Fixed https://github.com/SimonBiggs/scriptedforms/commit/90e6cd8cb074feaf8b1f8399bcd17114f6b11ef1

SimonBiggs commented 6 years ago

Also deprecated the use of name within button sections. Changed the label parameter within the <section-button> to be value to align with standard html parameters.