Skip to content

Commit 8a684f0

Browse files
author
pipeline
committed
feature(EJ2-4469): Sample changes
1 parent f53488c commit 8a684f0

File tree

7 files changed

+10
-14
lines changed

7 files changed

+10
-14
lines changed

src/button/button.css

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
margin-bottom: 30px;
2020
}
2121

22-
#button-control .e-btn-icon::before {
23-
position: relative;
24-
top: 1px;
25-
}
26-
2722
.e-play-icon::before {
2823
content: '\e798';
2924
}
@@ -36,6 +31,6 @@
3631
content: '\e782';
3732
}
3833

39-
.e-prev-icon::before {
40-
content: '\e797';
41-
}
34+
.e-add-icon::before {
35+
content: '\e823';
36+
}

src/button/button.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { SharedModule } from '../common/shared.module';
88

99
export const buttonAppRoutes: Object[] = [
1010
{ path: ':theme/button/default', component: DefaultButtonController, name: 'Default Functionalities', category: 'Button' },
11-
{ path: ':theme/button/check-box', component: CheckBoxController, name: 'CheckBox', category: 'Button', type: 'new' },
11+
{ path: ':theme/button/check-box', component: CheckBoxController, name: 'CheckBox', category: 'Button' },
1212
{ path: ':theme/button/radio-button', component: RadioButtonController, name: 'RadioButton', category: 'Button', type: 'new' }
1313
];
1414

src/button/default-plnkr.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/button/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="row">
4040
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
4141
<div class="col-xs-12 col-sm-12 col-lg-6 col-md-6">
42-
<button ej-button cssClass="e-flat" iconCss="e-icons e-prev-icon"></button>
42+
<button ej-button cssClass="e-small e-round" iconCss="e-icons e-add-icon" [isPrimary]="true"></button>
4343
</div>
4444
<div class="col-xs-12 col-sm-12 col-lg-6 col-md-6">
4545
<button #toggleBtn ej-button cssClass="e-flat" [isToggle]="true" (click)="btnClick()" iconCss="e-icons e-play-icon">Play</button>

src/button/radio-button-plnkr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"common/shared.module":"import { NgModule } from '@angular/core';\nimport { ButtonModule } from '@syncfusion/ej2-ng-buttons';\nimport { ListViewModule } from '@syncfusion/ej2-ng-lists';\nimport { DropDownListModule } from '@syncfusion/ej2-ng-dropdowns';\n\n\n@NgModule({\n imports: [\n ButtonModule,\n ListViewModule,\n DropDownListModule\n ],\n \n exports: [\n ButtonModule,\n ListViewModule,\n DropDownListModule\n ]\n})\nexport class SharedModule { }\n","app.module":"import { RadioButtonController } from './radio-button.component';\n\n\nimport { HttpModule, JsonpModule } from '@angular/http';\nimport { BrowserModule } from '@angular/platform-browser';\nimport 'rxjs/add/operator/map';\nimport { NgModule, ModuleWithProviders, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n\nimport { CheckBoxModule, RadioButtonModule } from '@syncfusion/ej2-ng-buttons';\n\n\nimport { SharedModule } from './common/shared.module';\n\n\n\n\n\n@NgModule({\n imports: [CheckBoxModule, RadioButtonModule, SharedModule, HttpModule, JsonpModule, BrowserModule],\ndeclarations: [RadioButtonController],\nbootstrap: [RadioButtonController]\n})\nexport class AppModule { }","radio-button.component":"import { Component, ViewEncapsulation, Inject } from '@angular/core';;\n\n/**\n * RadioButton Controller\n */\n@Component({\n selector: 'control-content',\n templateUrl: 'radio-button.html',\n styleUrls: ['radio-button.css'],\n encapsulation: ViewEncapsulation.None\n})\n\nexport class RadioButtonController {\n \n }","radio-button.html":"<div class=\"control-section\">\n <div class=\"radiobutton-control\">\n <h4>Select the Payment mode</h4>\n <div class=\"row\">\n <ej-radiobutton label=\"Credit/Debit card\" name=\"payment\" value=\"credit/debit\" checked=\"true\"></ej-radiobutton>\n </div>\n <div class=\"row\">\n <ej-radiobutton label=\"Net Banking\" name=\"payment\" value=\"netbanking\"></ej-radiobutton>\n </div>\n <div class=\"row\">\n <ej-radiobutton label=\"Cash on delivery\" name=\"payment\" value=\"cashondelivery\"></ej-radiobutton>\n </div>\n <div class=\"row\">\n <ej-radiobutton label=\"Others\" name=\"payment\" vlue=\"others\"></ej-radiobutton>\n </div>\n </div>\n</div>","radio-button.css":".radiobutton-control {\n margin-left: 40%;\n margin-top: 8%;\n}\n\n@media only screen and (max-width: 500px) {\n .radiobutton-control {\n margin-left: 21%;\n margin-top: 20%;\n margin-bottom: 27%;\n }\n}\n\n@media only screen and (max-width: 700px) {\n .checkbox-control {\n margin-left: 35%;\n margin-top: 8%;\n }\n\n .control-section {\n min-height: 200px;\n }\n}\n\n.control-section .row {\n margin-top: 20px;\n margin-left: 0px; \n}\n\n.control-section h4 {\n font-size: 15px;\n}","index.html":"<!DOCTYPE html>\n<html>\n \n <head>\n <meta name=\"author\" content=\"Syncfusion\" />\n <link href=\"http://npmci.syncfusion.com/packages/production/material.css\" rel=\"stylesheet\" />\n <script src=\"https://unpkg.com/core-js/client/shim.min.js\"></script>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/core.min.js\"></script>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/zone.js/0.6.25/zone.min.js\"></script>\n <script src=\"https://unpkg.com/[email protected]\"></script>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.38/system.js\"></script>\n <script src=\"systemjs.config.js\"></script>\n </head>\n \n <body>\n <control-content>\n <div id='loader'>Loading...</div>\n </control-content>\n </body>\n \n </html>\n ","systemjs.config.js":"System.config({\n transpiler: \"typescript\",\n typescriptOptions: {\n compilerOptions: {\n target: \"umd\",\n module: \"commonjs\",\n moduleResolution: \"node\",\n emitDecoratorMetadata: true,\n experimentalDecorators: true\n }\n },\n paths: {\n \"syncfusion:\": \"http://npmci.syncfusion.com/packages/production/\",\n \"angular:\": \"https://unpkg.com/@angular/\"\n },\n map: {\n main: 'main.ts',\n typescript: \"https://unpkg.com/[email protected]/lib/typescript.js\",\n \"plugin-json\":\"https://cdnjs.cloudflare.com/ajax/libs/systemjs-plugin-json/0.3.0/json.min.js\",\n \"@syncfusion/ej2-base\": \"syncfusion:ej2-base/dist/ej2-base.umd.min.js\",\n \"@syncfusion/ej2-buttons\": \"syncfusion:ej2-buttons/dist/ej2-buttons.umd.min.js\",\n \"@syncfusion/ej2-calendars\": \"syncfusion:ej2-calendars/dist/ej2-calendars.umd.min.js\",\n \"@syncfusion/ej2-charts\": \"syncfusion:ej2-charts/dist/ej2-charts.umd.min.js\",\n \"@syncfusion/ej2-circulargauge\": \"syncfusion:ej2-circulargauge/dist/ej2-circulargauge.umd.min.js\",\n \"@syncfusion/ej2-data\": \"syncfusion:ej2-data/dist/ej2-data.umd.min.js\",\n \"@syncfusion/ej2-dropdowns\": \"syncfusion:ej2-dropdowns/dist/ej2-dropdowns.umd.min.js\",\n \"@syncfusion/ej2-grids\": \"syncfusion:ej2-grids/dist/ej2-grids.umd.min.js\",\n \"@syncfusion/ej2-inputs\": \"syncfusion:ej2-inputs/dist/ej2-inputs.umd.min.js\",\n \"@syncfusion/ej2-lists\": \"syncfusion:ej2-lists/dist/ej2-lists.umd.min.js\",\n \"@syncfusion/ej2-navigations\": \"syncfusion:ej2-navigations/dist/ej2-navigations.umd.min.js\",\n \"@syncfusion/ej2-popups\": \"syncfusion:ej2-popups/dist/ej2-popups.umd.min.js\",\n \"@syncfusion/ej2-lineargauge\": \"syncfusion:ej2-lineargauge/dist/ej2-lineargauge.umd.min.js\",\n\n \"@syncfusion/ej2-ng-base\": \"syncfusion:ej2-ng-base/dist/ej2-ng-base.umd.min.js\",\n \"@syncfusion/ej2-ng-buttons\": \"syncfusion:ej2-ng-buttons/dist/ej2-ng-buttons.umd.min.js\",\n \"@syncfusion/ej2-ng-calendars\": \"syncfusion:ej2-ng-calendars/dist/ej2-ng-calendars.umd.min.js\",\n \"@syncfusion/ej2-ng-charts\": \"syncfusion:ej2-ng-charts/dist/ej2-ng-charts.umd.min.js\",\n \"@syncfusion/ej2-ng-circulargauge\": \"syncfusion:ej2-ng-circulargauge/dist/ej2-ng-circulargauge.umd.min.js\",\n \"@syncfusion/ej2-ng-data\": \"syncfusion:ej2-ng-data/dist/ej2-ng-data.umd.min.js\",\n \"@syncfusion/ej2-ng-dropdowns\": \"syncfusion:ej2-ng-dropdowns/dist/ej2-ng-dropdowns.umd.min.js\",\n \"@syncfusion/ej2-ng-grids\": \"syncfusion:ej2-ng-grids/dist/ej2-ng-grids.umd.min.js\",\n \"@syncfusion/ej2-ng-inputs\": \"syncfusion:ej2-ng-inputs/dist/ej2-ng-inputs.umd.min.js\",\n \"@syncfusion/ej2-ng-lists\": \"syncfusion:ej2-ng-lists/dist/ej2-ng-lists.umd.min.js\",\n \"@syncfusion/ej2-ng-navigations\": \"syncfusion:ej2-ng-navigations/dist/ej2-ng-navigations.umd.min.js\",\n \"@syncfusion/ej2-ng-popups\": \"syncfusion:ej2-ng-popups/dist/ej2-ng-popups.umd.min.js\",\n \"@syncfusion/ej2-ng-lineargauge\": \"syncfusion:ej2-ng-lineargauge/dist/ej2-ng-lineargauge.umd.min.js\",\n\n '@angular/core': 'angular:core/bundles/core.umd.js',\n '@angular/common': 'angular:common/bundles/common.umd.js',\n '@angular/compiler': 'angular:compiler/bundles/compiler.umd.js',\n '@angular/http': 'angular:http/bundles/http.umd.js',\n '@angular/forms': 'angular:forms/bundles/forms.umd.js',\n '@angular/router': 'angular:router/bundles/router.umd.js',\n '@angular/platform-browser': 'angular:platform-browser/bundles/platform-browser.umd.js',\n '@angular/platform-browser-dynamic': 'angular:platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',\n '@angular/material': 'angular:material/bundles/material.umd.js',\n 'rxjs': 'https://unpkg.com/rxjs'\n },\n meta: { \n '*.json': { loader: 'plugin-json' }\n }\n});\n\nSystem.import('main.ts').catch(console.error.bind(console));\n","main.ts":"import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\nimport { enableProdMode } from '@angular/core';\nimport { AppModule } from './app.module';\nimport { enableRipple } from '@syncfusion/ej2-base';\n\nenableRipple(true);\n\nenableProdMode();\nplatformBrowserDynamic().bootstrapModule(AppModule);"}
1+
{"common/shared.module":"import { NgModule } from '@angular/core';\nimport { ButtonModule } from '@syncfusion/ej2-ng-buttons';\nimport { ListViewModule } from '@syncfusion/ej2-ng-lists';\nimport { DropDownListModule } from '@syncfusion/ej2-ng-dropdowns';\n\n\n@NgModule({\n imports: [\n ButtonModule,\n ListViewModule,\n DropDownListModule\n ],\n \n exports: [\n ButtonModule,\n ListViewModule,\n DropDownListModule\n ]\n})\nexport class SharedModule { }\n","app.module":"import { RadioButtonController } from './radio-button.component';\n\n\nimport { HttpModule, JsonpModule } from '@angular/http';\nimport { BrowserModule } from '@angular/platform-browser';\nimport 'rxjs/add/operator/map';\nimport { NgModule, ModuleWithProviders, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n\nimport { CheckBoxModule, RadioButtonModule } from '@syncfusion/ej2-ng-buttons';\n\n\nimport { SharedModule } from './common/shared.module';\n\n\n\n\n\n@NgModule({\n imports: [CheckBoxModule, RadioButtonModule, SharedModule, HttpModule, JsonpModule, BrowserModule],\ndeclarations: [RadioButtonController],\nbootstrap: [RadioButtonController]\n})\nexport class AppModule { }","radio-button.component":"import { Component, ViewEncapsulation, Inject } from '@angular/core';;\n\n/**\n * RadioButton Controller\n */\n@Component({\n selector: 'control-content',\n templateUrl: 'radio-button.html',\n styleUrls: ['radio-button.css'],\n encapsulation: ViewEncapsulation.None\n})\n\nexport class RadioButtonController {\n \n }","radio-button.html":"<div class=\"control-section\">\n <div class=\"radiobutton-control\">\n <h4>Select the Payment mode</h4>\n <div class=\"row\">\n <ej-radiobutton label=\"Credit/Debit card\" name=\"payment\" value=\"credit/debit\" checked=\"true\"></ej-radiobutton>\n </div>\n <div class=\"row\">\n <ej-radiobutton label=\"Net Banking\" name=\"payment\" value=\"netbanking\"></ej-radiobutton>\n </div>\n <div class=\"row\">\n <ej-radiobutton label=\"Cash on Delivery\" name=\"payment\" value=\"cashondelivery\"></ej-radiobutton>\n </div>\n <div class=\"row\">\n <ej-radiobutton label=\"Other Wallets\" name=\"payment\" value=\"others\"></ej-radiobutton>\n </div>\n </div>\n</div>","radio-button.css":".radiobutton-control {\n margin-left: 40%;\n margin-top: 8%;\n}\n\n@media only screen and (max-width: 500px) {\n .radiobutton-control {\n margin-left: 21%;\n margin-top: 20%;\n margin-bottom: 27%;\n }\n}\n\n@media only screen and (max-width: 700px) {\n .checkbox-control {\n margin-left: 35%;\n margin-top: 8%;\n }\n\n .control-section {\n min-height: 200px;\n }\n}\n\n.control-section .row {\n margin-top: 20px;\n margin-left: 0px; \n}\n\n.control-section h4 {\n font-size: 15px;\n}","index.html":"<!DOCTYPE html>\n<html>\n \n <head>\n <meta name=\"author\" content=\"Syncfusion\" />\n <link href=\"http://npmci.syncfusion.com/packages/production/material.css\" rel=\"stylesheet\" />\n <script src=\"https://unpkg.com/core-js/client/shim.min.js\"></script>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/core.min.js\"></script>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/zone.js/0.6.25/zone.min.js\"></script>\n <script src=\"https://unpkg.com/[email protected]\"></script>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.38/system.js\"></script>\n <script src=\"systemjs.config.js\"></script>\n </head>\n \n <body>\n <control-content>\n <div id='loader'>Loading...</div>\n </control-content>\n </body>\n \n </html>\n ","systemjs.config.js":"System.config({\n transpiler: \"typescript\",\n typescriptOptions: {\n compilerOptions: {\n target: \"umd\",\n module: \"commonjs\",\n moduleResolution: \"node\",\n emitDecoratorMetadata: true,\n experimentalDecorators: true\n }\n },\n paths: {\n \"syncfusion:\": \"http://npmci.syncfusion.com/packages/production/\",\n \"angular:\": \"https://unpkg.com/@angular/\"\n },\n map: {\n main: 'main.ts',\n typescript: \"https://unpkg.com/[email protected]/lib/typescript.js\",\n \"plugin-json\":\"https://cdnjs.cloudflare.com/ajax/libs/systemjs-plugin-json/0.3.0/json.min.js\",\n \"@syncfusion/ej2-base\": \"syncfusion:ej2-base/dist/ej2-base.umd.min.js\",\n \"@syncfusion/ej2-buttons\": \"syncfusion:ej2-buttons/dist/ej2-buttons.umd.min.js\",\n \"@syncfusion/ej2-calendars\": \"syncfusion:ej2-calendars/dist/ej2-calendars.umd.min.js\",\n \"@syncfusion/ej2-charts\": \"syncfusion:ej2-charts/dist/ej2-charts.umd.min.js\",\n \"@syncfusion/ej2-circulargauge\": \"syncfusion:ej2-circulargauge/dist/ej2-circulargauge.umd.min.js\",\n \"@syncfusion/ej2-data\": \"syncfusion:ej2-data/dist/ej2-data.umd.min.js\",\n \"@syncfusion/ej2-dropdowns\": \"syncfusion:ej2-dropdowns/dist/ej2-dropdowns.umd.min.js\",\n \"@syncfusion/ej2-grids\": \"syncfusion:ej2-grids/dist/ej2-grids.umd.min.js\",\n \"@syncfusion/ej2-inputs\": \"syncfusion:ej2-inputs/dist/ej2-inputs.umd.min.js\",\n \"@syncfusion/ej2-lists\": \"syncfusion:ej2-lists/dist/ej2-lists.umd.min.js\",\n \"@syncfusion/ej2-navigations\": \"syncfusion:ej2-navigations/dist/ej2-navigations.umd.min.js\",\n \"@syncfusion/ej2-popups\": \"syncfusion:ej2-popups/dist/ej2-popups.umd.min.js\",\n \"@syncfusion/ej2-lineargauge\": \"syncfusion:ej2-lineargauge/dist/ej2-lineargauge.umd.min.js\",\n\n \"@syncfusion/ej2-ng-base\": \"syncfusion:ej2-ng-base/dist/ej2-ng-base.umd.min.js\",\n \"@syncfusion/ej2-ng-buttons\": \"syncfusion:ej2-ng-buttons/dist/ej2-ng-buttons.umd.min.js\",\n \"@syncfusion/ej2-ng-calendars\": \"syncfusion:ej2-ng-calendars/dist/ej2-ng-calendars.umd.min.js\",\n \"@syncfusion/ej2-ng-charts\": \"syncfusion:ej2-ng-charts/dist/ej2-ng-charts.umd.min.js\",\n \"@syncfusion/ej2-ng-circulargauge\": \"syncfusion:ej2-ng-circulargauge/dist/ej2-ng-circulargauge.umd.min.js\",\n \"@syncfusion/ej2-ng-data\": \"syncfusion:ej2-ng-data/dist/ej2-ng-data.umd.min.js\",\n \"@syncfusion/ej2-ng-dropdowns\": \"syncfusion:ej2-ng-dropdowns/dist/ej2-ng-dropdowns.umd.min.js\",\n \"@syncfusion/ej2-ng-grids\": \"syncfusion:ej2-ng-grids/dist/ej2-ng-grids.umd.min.js\",\n \"@syncfusion/ej2-ng-inputs\": \"syncfusion:ej2-ng-inputs/dist/ej2-ng-inputs.umd.min.js\",\n \"@syncfusion/ej2-ng-lists\": \"syncfusion:ej2-ng-lists/dist/ej2-ng-lists.umd.min.js\",\n \"@syncfusion/ej2-ng-navigations\": \"syncfusion:ej2-ng-navigations/dist/ej2-ng-navigations.umd.min.js\",\n \"@syncfusion/ej2-ng-popups\": \"syncfusion:ej2-ng-popups/dist/ej2-ng-popups.umd.min.js\",\n \"@syncfusion/ej2-ng-lineargauge\": \"syncfusion:ej2-ng-lineargauge/dist/ej2-ng-lineargauge.umd.min.js\",\n\n '@angular/core': 'angular:core/bundles/core.umd.js',\n '@angular/common': 'angular:common/bundles/common.umd.js',\n '@angular/compiler': 'angular:compiler/bundles/compiler.umd.js',\n '@angular/http': 'angular:http/bundles/http.umd.js',\n '@angular/forms': 'angular:forms/bundles/forms.umd.js',\n '@angular/router': 'angular:router/bundles/router.umd.js',\n '@angular/platform-browser': 'angular:platform-browser/bundles/platform-browser.umd.js',\n '@angular/platform-browser-dynamic': 'angular:platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',\n '@angular/material': 'angular:material/bundles/material.umd.js',\n 'rxjs': 'https://unpkg.com/rxjs'\n },\n meta: { \n '*.json': { loader: 'plugin-json' }\n }\n});\n\nSystem.import('main.ts').catch(console.error.bind(console));\n","main.ts":"import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\nimport { enableProdMode } from '@angular/core';\nimport { AppModule } from './app.module';\nimport { enableRipple } from '@syncfusion/ej2-base';\n\nenableRipple(true);\n\nenableProdMode();\nplatformBrowserDynamic().bootstrapModule(AppModule);"}

src/button/radio-button.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ <h4>Select the Payment mode</h4>
88
<ej-radiobutton label="Net Banking" name="payment" value="netbanking"></ej-radiobutton>
99
</div>
1010
<div class="row">
11-
<ej-radiobutton label="Cash on delivery" name="payment" value="cashondelivery"></ej-radiobutton>
11+
<ej-radiobutton label="Cash on Delivery" name="payment" value="cashondelivery"></ej-radiobutton>
1212
</div>
1313
<div class="row">
14-
<ej-radiobutton label="Others" name="payment" vlue="others"></ej-radiobutton>
14+
<ej-radiobutton label="Other Wallets" name="payment" value="others"></ej-radiobutton>
1515
</div>
1616
</div>
1717
</div>

styles/bootstrap.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'ej2/bootstrap.scss';

0 commit comments

Comments
 (0)