This commit is contained in:
pipeline 2022-08-08 09:53:11 +00:00
Родитель 7e256b1eda
Коммит 6a77b4c291
3 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -10,7 +10,7 @@ Add your sample order in the `src/common/sampleOrder.json` with corresponding ca
Note: Do not use whitespace at any cause in folders name. Use “-” instead of space.
[Refer here](https://bitbucket.org/syncfusion/ej2-sample-browser/src/7740ab838973c7ebb3e970acb5246ff4c89ccd67/src/?at=master)
[Refer here](https://github.com/syncfusion/ej2-samples/tree/master/src)
### Configure the folder and sample
@ -18,7 +18,7 @@ Create the “sample.json” file inside of your control folder. Create your sa
Note: Do not use whitespace at any cause in files name. Use “-” instead of space.
[Refer here](https://bitbucket.org/syncfusion/ej2-sample-browser/src/7740ab838973c7ebb3e970acb5246ff4c89ccd67/src/button/?at=master)
[Refer here](https://github.com/syncfusion/ej2-samples/tree/master/src/button)
### Configure Sample JSON
@ -230,15 +230,15 @@ Note: Here, The mentioned IP is your local machine IP Address.
1. In import statements in html file for a sample the package subdirectory shouldnt be mentioned. Please refer the link given below.
https://gitlab.syncfusion.com/essential-studio/ej2-samples/blob/development/src/grid/events.ts#L3
https://github.com/syncfusion/ej2-samples/blob/master/src/grid/events.ts#L3
2. In Base component dom and util are not available in the customer end. So, please dont use the same. Please refer the link below.
https://gitlab.syncfusion.com/essential-studio/ej2-samples/blob/development/src/grid/events.ts#L3
https://github.com/syncfusion/ej2-samples/blob/master/src/grid/events.ts#L3
3. To add any icon in the samples use base64 font and dont use any font files like ttf, woff, or svg externally. Please refer the link given below.
https://gitlab.syncfusion.com/essential-studio/ej2-samples/blob/development/src/toolbar/default.html#L5
https://github.com/syncfusion/ej2-samples/blob/master/src/toolbar/default.ts#L13
For example:
```
@ -262,10 +262,10 @@ Note: Here, The mentioned IP is your local machine IP Address.
4. For loading json files in the sample use import statements instead of require. Please refer the link given below.
https://gitlab.syncfusion.com/essential-studio/ej2-samples/blob/development/src/calendar/internationalization.ts#L9
https://github.com/syncfusion/ej2-samples/blob/master/src/auto-complete/custom-filtering.ts#L7
( For example: import * as testJson from '../common/cldr-data/supplemental/numberingSystems.json'; )
5. If a New Component is added to TypeScript Sample Browser its package dependency should be added to the config in src/sys.js file.
( For example: https://gitlab.syncfusion.com/essential-studio/ej2-samples/blob/development/src/sys.js#L19 )
( For example: https://github.com/syncfusion/ej2-samples/blob/master/src/sys.js#L19 )

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@syncfusion/ej2-samples",
"version": "20.2.36",
"version": "20.2.43",
"description": "Samples for Syncfusion Essential JS 2",
"author": "Syncfusion Inc.",
"license": "SEE LICENSE IN license",

Просмотреть файл

@ -28,9 +28,9 @@ TreeGrid.Inject(Page, Filter, Sort, Edit, Toolbar);
editSettings: { allowAdding: true, allowEditing: true, allowDeleting: true, mode: 'Dialog' },
toolbar: ['Add', 'Edit', 'Delete', 'Update', 'Cancel', 'Search'],
columns: [
{ field: 'taskID', headerText: 'Task ID', isPrimaryKey: true, width: 135, textAlign: 'Right' },
{ field: 'taskName', headerText: 'Task Name', width: 280, textAlign: 'Left' },
{ field: 'duration', headerText: 'Duration', width: 140, textAlign: 'Right' },
{ field: 'taskID', headerText: 'Task ID', isPrimaryKey: true, validationRules: { required: true, number: true}, width: 135, textAlign: 'Right' },
{ field: 'taskName', headerText: 'Task Name',validationRules: { required: true}, width: 280, textAlign: 'Left' },
{ field: 'duration', headerText: 'Duration',validationRules: {required: true}, width: 140, textAlign: 'Right' },
{ field: 'progress', headerText: 'Progress', width: 145, textAlign: 'Right' }
],
});