cssclass is now cssClass
Make property name consistent with standard camelCase naming.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
this source code distribution or the Licensing information page available
|
||||
at runtime from the About dialog for additional information.
|
||||
-->
|
||||
<a class="s-button {{structure.cssclass}}"
|
||||
<a class="s-button {{structure.cssClass}}"
|
||||
ng-class="{ labeled: structure.text }"
|
||||
ng-click="structure.click()">
|
||||
<span class="title-label" ng-if="structure.text">
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
this source code distribution or the Licensing information page available
|
||||
at runtime from the About dialog for additional information.
|
||||
-->
|
||||
<div class="s-button s-menu-button menu-element t-color-palette {{structure.cssclass}}"
|
||||
<div class="s-button s-menu-button menu-element t-color-palette {{structure.cssClass}}"
|
||||
ng-controller="ClickAwayController as toggle">
|
||||
|
||||
<span class="l-click-area" ng-click="toggle.toggle()"></span>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
-->
|
||||
<span ng-controller="CompositeController as compositeCtrl">
|
||||
<ng-form name="mctFormItem" ng-repeat="item in structure.items">
|
||||
<div class="l-composite-control l-{{item.control}} {{item.cssclass}}">
|
||||
<div class="l-composite-control l-{{item.control}} {{item.cssClass}}">
|
||||
<mct-control key="item.control"
|
||||
ng-model="ngModel[field]"
|
||||
ng-required="ngRequired || compositeCtrl.isNonEmpty(ngModel[field])"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
this source code distribution or the Licensing information page available
|
||||
at runtime from the About dialog for additional information.
|
||||
-->
|
||||
<div class="s-menu-button menu-element {{ structure.cssclass }}"
|
||||
<div class="s-menu-button menu-element {{ structure.cssClass }}"
|
||||
ng-controller="ClickAwayController as toggle">
|
||||
|
||||
<span class="l-click-area" ng-click="toggle.toggle()"></span>
|
||||
@@ -31,7 +31,7 @@
|
||||
<ul>
|
||||
<li ng-click="structure.click(option.key); toggle.setState(false)"
|
||||
ng-repeat="option in structure.options"
|
||||
class="{{ option.cssclass }}">
|
||||
class="{{ option.cssClass }}">
|
||||
{{option.name}}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
at runtime from the About dialog for additional information.
|
||||
-->
|
||||
<span class='form-control shell'>
|
||||
<span class='field control {{structure.cssclass}}'>
|
||||
<span class='field control {{structure.cssClass}}'>
|
||||
<textarea ng-required="ngRequired"
|
||||
ng-model="ngModel[field]"
|
||||
ng-pattern="ngPattern"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
at runtime from the About dialog for additional information.
|
||||
-->
|
||||
<span class='form-control shell'>
|
||||
<span class='field control {{structure.cssclass}}'>
|
||||
<span class='field control {{structure.cssClass}}'>
|
||||
<input type="text"
|
||||
ng-required="ngRequired"
|
||||
ng-model="ngModel[field]"
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
-->
|
||||
<form name="mctForm" novalidate class="form l-flex-col">
|
||||
<span ng-repeat="section in structure.sections"
|
||||
class="l-form-section l-flex-col flex-elem {{ section.cssclass }}">
|
||||
class="l-form-section l-flex-col flex-elem {{ section.cssClass }}">
|
||||
<div class="section-header flex-elem" ng-if="section.name">
|
||||
{{section.name}}
|
||||
</div>
|
||||
<ng-form class="form-row validates l-flex-row flex-elem {{ section.cssclass }}"
|
||||
<ng-form class="form-row validates l-flex-row flex-elem {{ section.cssClass }}"
|
||||
ng-class="{
|
||||
first:$index < 1,
|
||||
req: row.required,
|
||||
|
||||
@@ -63,7 +63,7 @@ define(
|
||||
|
||||
// Prepare the structure for the button itself
|
||||
self.buttonStructure = {};
|
||||
self.buttonStructure.cssclass = structure.cssclass;
|
||||
self.buttonStructure.cssClass = structure.cssClass;
|
||||
self.buttonStructure.name = structure.name;
|
||||
self.buttonStructure.description = structure.description;
|
||||
self.buttonStructure.click = showDialog;
|
||||
|
||||
@@ -46,7 +46,7 @@ define(
|
||||
);
|
||||
testStructure = {
|
||||
name: "A Test",
|
||||
cssclass: "icon-T",
|
||||
cssClass: "icon-T",
|
||||
description: "Test description",
|
||||
control: "dialog-button",
|
||||
title: "Test title",
|
||||
@@ -83,7 +83,7 @@ define(
|
||||
mockScope.$watch.mostRecentCall.args[1](testStructure);
|
||||
|
||||
buttonStructure = controller.getButtonStructure();
|
||||
expect(buttonStructure.cssclass).toEqual(testStructure.cssclass);
|
||||
expect(buttonStructure.cssClass).toEqual(testStructure.cssClass);
|
||||
expect(buttonStructure.description).toEqual(testStructure.description);
|
||||
expect(buttonStructure.name).toEqual(testStructure.name);
|
||||
expect(buttonStructure.click).toEqual(jasmine.any(Function));
|
||||
|
||||
Reference in New Issue
Block a user