This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcustom-plnkr.json
More file actions
1 lines (1 loc) · 28.9 KB
/
custom-plnkr.json
File metadata and controls
1 lines (1 loc) · 28.9 KB
1
{"index.css":"#custom-control {\r\n margin: auto 0;\r\n text-align: center;\r\n}\r\n\r\n#custom-control #e-shirt-preview {\r\n background: transparent url('http://ej2.syncfusion.com/react/demos/src/color-picker/images/shirt.png') no-repeat;\r\n height: 320px;\r\n margin: 20px auto;\r\n display: inline-block;\r\n width: 400px;\r\n background-color: rgb(244, 67, 54);\r\n}\r\n\r\n#custom-control.e-mobile-control #e-shirt-preview {\r\n margin-left: -21%;\r\n width: 320px;\r\n}\r\n\r\n.highcontrast #custom-control #e-shirt-preview {\r\n background: transparent url('http://ej2.syncfusion.com/react/demos/src/color-picker/images/shirt_highcontrast.png') no-repeat;\r\n background-color: rgb(244, 67, 54);\r\n}\r\n\r\n#custom-control .col-lg-6 {\r\n margin-bottom: 20px;\r\n}\r\n\r\n#custom-control .col-lg-6.e-circle-wrap {\r\n width: 26%;\r\n}\r\n\r\n#custom-control .col-lg-6.e-square-wrap {\r\n margin-top: 37px;\r\n width: 22%;\r\n}\r\n\r\n#custom-control .col-lg-6.e-rounded-wrap {\r\n margin-top: 35px;\r\n width: 20%;\r\n}\r\n\r\n#custom-control .col-lg-6.e-scroll-wrap {\r\n width: 32%;\r\n}\r\n\r\n#custom-control.e-mobile-control .col-lg-6 {\r\n width: 55%;\r\n}\r\n\r\n@media only screen and (min-width: 768px) {\r\n #custom-control.e-mobile-control .col-sm-12 {\r\n width: 25%;\r\n }\r\n}\r\n\r\n#custom-control.e-mobile-control #custom-content {\r\n display: flex;\r\n flex-wrap: nowrap;\r\n overflow-x: auto;\r\n}\r\n\r\n#custom-control.e-mobile-control #custom-content .col-xs-12 {\r\n flex: 0 0 auto;\r\n}\r\n\r\n#custom-control h4 {\r\n margin-bottom: 20px;\r\n color: rgba(0, 0, 0, 0.64);\r\n}\r\n\r\n.e-bigger #custom-control h4 {\r\n font-size: 20px;\r\n}\r\n\r\n.e-container .e-palette .e-circle-palette {\r\n border: 0;\r\n height: 32px;\r\n width: 32px;\r\n border-radius: 20px;\r\n margin: 4px;\r\n}\r\n\r\n.e-bigger .e-container .e-palette .e-circle-palette {\r\n height: 32px;\r\n width: 32px;\r\n}\r\n\r\n.e-container .e-palette .e-circle-palette:hover {\r\n box-shadow: none;\r\n transform: scale(1.2);\r\n transition: transform .2s ease-out;\r\n}\r\n\r\n.e-circle-palette .e-circle-selection {\r\n height: 32px;\r\n width: 32px;\r\n border-radius: 20px;\r\n display: inline-block;\r\n transform: scale(0);\r\n transition: transform 1.2s ease-in;\r\n}\r\n\r\n.e-circle-palette.e-selected .e-circle-selection {\r\n transform: scale(0.8);\r\n background-color: #fff;\r\n transition: transform .2s ease-out;\r\n}\r\n\r\n#circle-palette+.e-container,\r\n#scroll-palette+.e-container {\r\n background-color: transparent;\r\n border-color: transparent;\r\n box-shadow: none;\r\n}\r\n\r\n#scroll-palette+.e-container .e-custom-palette.e-palette-group,\r\n.e-bigger #scroll-palette+.e-container .e-custom-palette.e-palette-group {\r\n height: 125px;\r\n}\r\n\r\n.e-container .e-palette .e-scroll-palette {\r\n border: 0;\r\n color: #fff;\r\n line-height: 24px;\r\n font-size: 16px;\r\n height: 24px;\r\n width: 35px;\r\n margin-top: 2px;\r\n margin-left: 10px;\r\n}\r\n\r\n.e-bigger .e-container .e-palette .e-scroll-palette {\r\n height: 24px;\r\n width: 35px;\r\n}\r\n\r\n.e-container .e-palette .e-scroll-palette.e-selected::before {\r\n content: '\\e933';\r\n}\r\n\r\n.highcontrast .e-container .e-palette {\r\n border-bottom-color: transparent;\r\n}\r\n\r\n#square-palette+.e-container .e-custom-palette .e-palette,\r\n#rounded-palette+.e-container .e-custom-palette .e-palette {\r\n padding: 5px;\r\n}\r\n\r\n.e-container .e-palette .e-square-palette,\r\n.e-bigger .e-container .e-palette .e-square-palette {\r\n width: 20px;\r\n height: 20px;\r\n}\r\n\r\n.e-container .e-palette .e-rounded-palette {\r\n border-radius: 4px;\r\n margin: 3px;\r\n height: 16px;\r\n width: 16px;\r\n}\r\n\r\n.e-bigger .e-container .e-palette .e-rounded-palette {\r\n height: 16px;\r\n width: 16px;\r\n}\r\n\r\n.e-container .e-palette .e-rounded-palette:hover,\r\n.e-container .e-palette .e-scroll-palette:hover {\r\n box-shadow: none;\r\n}\r\n\r\n.e-container .e-palette .e-circle-palette.e-selected,\r\n.e-container .e-palette .e-rounded-palette.e-selected,\r\n.e-container .e-palette .e-square-palette.e-selected,\r\n.e-container .e-palette .e-scroll-palette.e-selected {\r\n outline: none;\r\n}\r\n","systemjs.config.js":"System.config({\r\n transpiler: \"ts\",\r\n typescriptOptions: {\r\n target: \"es5\",\r\n module: \"commonjs\",\r\n moduleResolution: \"node\",\r\n emitDecoratorMetadata: true,\r\n experimentalDecorators: true,\r\n \"jsx\": \"react\"\r\n },\r\n meta: {\r\n 'typescript': {\r\n \"exports\": \"ts\"\r\n },\r\n '*.json': { loader: 'plugin-json' }\r\n },\r\n paths: {\r\n \"syncfusion:\": \"http://cdn.syncfusion.com/ej2/\"},\r\n map: {\r\n app: 'app',\r\n ts: \"https://unpkg.com/plugin-typescript@4.0.10/lib/plugin.js\",\r\n typescript: \"https://unpkg.com/typescript@2.2.2/lib/typescript.js\",\r\n \"plugin-json\":\"https://cdnjs.cloudflare.com/ajax/libs/systemjs-plugin-json/0.3.0/json.min.js\",\r\n \"@syncfusion/ej2-base\": \"syncfusion:ej2-base/dist/ej2-base.umd.min.js\",\r\n \"@syncfusion/ej2-buttons\": \"syncfusion:ej2-buttons/dist/ej2-buttons.umd.min.js\",\r\n \"@syncfusion/ej2-splitbuttons\": \"syncfusion:ej2-splitbuttons/dist/ej2-splitbuttons.umd.min.js\",\r\n \"@syncfusion/ej2-charts\": \"syncfusion:ej2-charts/dist/ej2-charts.umd.min.js\",\r\n \"@syncfusion/ej2-maps\": \"syncfusion:ej2-maps/dist/ej2-maps.umd.min.js\",\r\n \"@syncfusion/ej2-treemap\": \"syncfusion:ej2-treemap/dist/ej2-treemap.umd.min.js\",\r\n \"@syncfusion/ej2-circulargauge\": \"syncfusion:ej2-circulargauge/dist/ej2-circulargauge.umd.min.js\",\r\n \"@syncfusion/ej2-lineargauge\": \"syncfusion:ej2-lineargauge/dist/ej2-lineargauge.umd.min.js\",\r\n \"@syncfusion/ej2-calendars\": \"syncfusion:ej2-calendars/dist/ej2-calendars.umd.min.js\",\r\n \"@syncfusion/ej2-data\": \"syncfusion:ej2-data/dist/ej2-data.umd.min.js\",\r\n \"@syncfusion/ej2-dropdowns\": \"syncfusion:ej2-dropdowns/dist/ej2-dropdowns.umd.min.js\",\r\n \"@syncfusion/ej2-grids\": \"syncfusion:ej2-grids/dist/ej2-grids.umd.min.js\",\r\n \"@syncfusion/ej2-lists\": \"syncfusion:ej2-lists/dist/ej2-lists.umd.min.js\",\r\n \"@syncfusion/ej2-inputs\": \"syncfusion:ej2-inputs/dist/ej2-inputs.umd.min.js\",\r\n \"@syncfusion/ej2-navigations\": \"syncfusion:ej2-navigations/dist/ej2-navigations.umd.min.js\",\r\n \"@syncfusion/ej2-popups\": \"syncfusion:ej2-popups/dist/ej2-popups.umd.min.js\",\r\n \"@syncfusion/ej2-schedule\": \"syncfusion:ej2-schedule/dist/ej2-schedule.umd.min.js\",\r\n \"@syncfusion/ej2-pdf-export\": \"syncfusion:ej2-pdf-export/dist/ej2-pdf-export.umd.min.js\", \r\n \"@syncfusion/ej2-compression\": \"syncfusion:ej2-compression/dist/ej2-compression.umd.min.js\",\r\n \"@syncfusion/ej2-excel-export\": \"syncfusion:ej2-excel-export/dist/ej2-excel-export.umd.min.js\", \r\n \"@syncfusion/ej2-file-utils\": \"syncfusion:ej2-file-utils/dist/ej2-file-utils.umd.min.js\",\r\n \"@syncfusion/ej2-documenteditor\": \"syncfusion:ej2-documenteditor/dist/ej2-documenteditor.umd.min.js\",\r\n \"@syncfusion/ej2-notifications\": \"syncfusion:ej2-notifications/dist/ej2-notifications.umd.min.js\",\r\n \"@syncfusion/ej2-richtexteditor\": \"syncfusion:ej2-richtexteditor/dist/ej2-richtexteditor.umd.min.js\",\r\n\t\t\"@syncfusion/ej2-svg-base\": \"syncfusion:ej2-svg-base/dist/ej2-svg-base.umd.min.js\",\r\n \"@syncfusion/ej2-pivotview\": \"syncfusion:ej2-pivotview/dist/ej2-pivotview.umd.min.js\",\r\n \"@syncfusion/ej2-heatmap\": \"syncfusion:ej2-heatmap/dist/ej2-heatmap.umd.min.js\",\r\n \"@syncfusion/ej2-react-base\": \"syncfusion:ej2-react-base/dist/ej2-react-base.umd.min.js\",\r\n \"@syncfusion/ej2-react-buttons\": \"syncfusion:ej2-react-buttons/dist/ej2-react-buttons.umd.min.js\",\r\n \"@syncfusion/ej2-react-splitbuttons\": \"syncfusion:ej2-react-splitbuttons/dist/ej2-react-splitbuttons.umd.min.js\",\r\n \"@syncfusion/ej2-react-charts\": \"syncfusion:ej2-react-charts/dist/ej2-react-charts.umd.min.js\",\r\n \"@syncfusion/ej2-react-maps\": \"syncfusion:ej2-react-maps/dist/ej2-react-maps.umd.min.js\",\r\n \"@syncfusion/ej2-react-treemap\": \"syncfusion:ej2-react-treemap/dist/ej2-react-treemap.umd.min.js\",\r\n \"@syncfusion/ej2-react-circulargauge\": \"syncfusion:ej2-react-circulargauge/dist/ej2-react-circulargauge.umd.min.js\",\r\n \"@syncfusion/ej2-react-lineargauge\": \"syncfusion:ej2-react-lineargauge/dist/ej2-react-lineargauge.umd.min.js\",\r\n \"@syncfusion/ej2-react-calendars\": \"syncfusion:ej2-react-calendars/dist/ej2-react-calendars.umd.min.js\",\r\n \"@syncfusion/ej2-react-dropdowns\": \"syncfusion:ej2-react-dropdowns/dist/ej2-react-dropdowns.umd.min.js\",\r\n \"@syncfusion/ej2-react-grids\": \"syncfusion:ej2-react-grids/dist/ej2-react-grids.umd.min.js\",\r\n \"@syncfusion/ej2-react-inputs\": \"syncfusion:ej2-react-inputs/dist/ej2-react-inputs.umd.min.js\",\r\n \"@syncfusion/ej2-react-lists\": \"syncfusion:ej2-react-lists/dist/ej2-react-lists.umd.min.js\",\r\n \"@syncfusion/ej2-react-navigations\": \"syncfusion:ej2-react-navigations/dist/ej2-react-navigations.umd.min.js\",\r\n \"@syncfusion/ej2-react-popups\": \"syncfusion:ej2-react-popups/dist/ej2-react-popups.umd.min.js\",\r\n \"@syncfusion/ej2-react-schedule\": \"syncfusion:ej2-react-schedule/dist/ej2-react-schedule.umd.min.js\",\r\n \"@syncfusion/ej2-react-documenteditor\": \"syncfusion:ej2-react-documenteditor/dist/ej2-react-documenteditor.umd.min.js\",\r\n \"@syncfusion/ej2-react-notifications\": \"syncfusion:ej2-react-notifications/dist/ej2-react-notifications.umd.min.js\",\r\n \"@syncfusion/ej2-react-richtexteditor\": \"syncfusion:ej2-react-richtexteditor/dist/ej2-react-richtexteditor.umd.min.js\",\r\n \"@syncfusion/ej2-react-pivotview\": \"syncfusion:ej2-react-pivotview/dist/ej2-react-pivotview.umd.min.js\",\r\n \"@syncfusion/ej2-react-heatmap\": \"syncfusion:ej2-react-heatmap/dist/ej2-react-heatmap.umd.min.js\",\r\n \"react-dom\":\"https://unpkg.com/react-dom@15.5.4/dist/react-dom.min.js\",\r\n \"react\":\"https://unpkg.com/react@15.5.4/dist/react.min.js\",\r\n },\r\n packages: {\r\n 'app': { main: 'index', defaultExtension: 'tsx' },\r\n }\r\n});\r\n\r\nSystem.import('app');","index.html":"<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <title>Color-picker · CustomPalette · Essential JS 2 for React · Syncfusion</title>\r\n <meta charset=\"utf-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\" />\r\n <meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\">\r\n <!-- {{:meta}} -->\r\n <meta name=\"author\" content=\"Syncfusion\" />\r\n <script type=\"text/javascript\">\r\n var themeName = location.hash || 'material';\r\n themeName = themeName.replace('#','');\r\n window.ripple = (themeName === \"material\")\r\n document.write('<link href=\"http://cdn.syncfusion.com/ej2/' + themeName + '.css\" rel=\"stylesheet\">');\r\n </script>\r\n <link href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" rel=\"stylesheet\" />\r\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.38/system.js\"></script>\r\n <script src=\"systemjs.config.js\"></script>\r\n <link href=\"index.css\" rel=\"stylesheet\" />\r\n <style>\r\n #loader {\r\n color: #008cff;\r\n height: 40px;\r\n left: 45%;\r\n position: absolute;\r\n top: 45%;\r\n width: 30%;\r\n }\r\n body {\r\n touch-action:none;\r\n }\r\n .body {\r\n font-family: \"Roboto\", \"Segoe UI\", \"GeezaPro\", \"DejaVu Serif\", \"sans-serif\";\r\n }\r\n\r\n .e-view {\r\n bottom: 0;\r\n left: 0;\r\n overflow: hidden;\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n }\r\n\r\n .sb-left {\r\n float: left;\r\n }\r\n\r\n .sb-right {\r\n float: right;\r\n }\r\n\r\n .sb-block {\r\n display: block;\r\n }\r\n\r\n .sb-table {\r\n display: table;\r\n }\r\n\r\n .sb-table-cell {\r\n display: table-cell;\r\n vertical-align: middle;\r\n }\r\n\r\n /*sample header*/\r\n\r\n\r\n .sb-header {\r\n height: 48px;\r\n background: #FFFFFF;\r\n box-shadow: 0 2px 4px 0 rgba(0,0,0,0.12);\r\n z-index: 1001;\r\n opacity: 100;\r\n }\r\n\r\n\r\n .sb-header-left, .sb-header-right {\r\n height: 100%;\r\n }\r\n\r\n #sb-header-text {\r\n padding-left: 22px;\r\n opacity: 0.87;\r\n font-family: Roboto;\r\n font-weight: 500;\r\n font-size: 15px;\r\n color: #000000;\r\n text-align: left;\r\n }\r\n\r\n .header-logo {\r\n float: left;\r\n padding-left: 8px;\r\n padding-right: 22px;\r\n }\r\n\r\n .footer-logo {\r\n background: url(https://ej2.syncfusion.com/home/images/footer-logo.svg) no-repeat right;\r\n height: 40px;\r\n width: 140px;\r\n }\r\n\r\n .sb-header-splitter {\r\n float: left;\r\n border-left: 1px solid rgb(196, 196, 196);\r\n height: 32px;\r\n margin-top: 8px;\r\n padding-left: 22 px;\r\n }\r\n\r\n .sb-header-settings {\r\n display: none;\r\n }\r\n\r\n .product-style a{\r\n padding-right: 15px;\r\n font-family:Roboto;\r\n font-weight: 500;\r\n font-size: 13px;\r\n color: #363636;\r\n text-align: center;\r\n text-decoration: none;\r\n }\r\n .product-style a:hover {\r\n color:#3C78EF;\r\n }\r\n\r\n .sb-download-btn a {\r\n text-decoration: none;\r\n }\r\n\r\n .sb-download-text {\r\n color: #FFFFFF;\r\n }\r\n\r\n .sb-download-wrapper {\r\n padding-right: 27px;\r\n }\r\n\r\n .sb-download-btn:hover .sb-download-btn:focus .sb-download-btn.active {\r\n border-radius: 2px;\r\n font-family: \"Roboto\";\r\n font-weight: bold;\r\n color: #FFFFFF;\r\n }\r\n\r\n .sb-download-btn:hover {\r\n background: #006CE6;\r\n }\r\n\r\n .sb-download-btn:focus {\r\n background: #0051CB;\r\n }\r\n\r\n .sb-download-btn.active {\r\n background: #0036B1;\r\n }\r\n\r\n .sb-download-btn {\r\n background-color: #3C78EF;\r\n opacity: 100;\r\n border-radius: 2px;\r\n font-family: \"Roboto\", \"Segoe UI\", \"GeezaPro\", \"DejaVu Serif\", \"sans-serif\";\r\n font-weight: 500;\r\n line-height: 18px;\r\n height: 32px;\r\n border-color: transparent;\r\n }\r\n\r\n .sb-bread-crumb {\r\n padding-left: 20px;\r\n padding-top: 24px;\r\n padding-bottom: 10px;\r\n }\r\n\r\n .category-allcontrols a, .category-text a, .crumb-sample {\r\n display: table;\r\n opacity: 0.87;\r\n font-family: Roboto;\r\n font-weight: 500;\r\n font-size: 15px;\r\n color: #3C78EF;\r\n text-align: left;\r\n text-decoration: none;\r\n }\r\n\r\n .sb-bread-crumb .sb-bread-crumb-text>div {\r\n font-size: 15px;\r\n font-weight: 500;\r\n padding-right: 8px;\r\n cursor: default;\r\n display: table-cell;\r\n }\r\n\r\n .sb-bread-crumb-text>div.seperator {\r\n font-weight: 700;\r\n font-size: 15px;\r\n vertical-align: bottom;\r\n } \r\n\r\n .content {\r\n overflow: auto;\r\n height: calc(100% - 50px);\r\n top: 50px;\r\n }\r\n\r\n\r\n .sample-content {\r\n top: 48px;\r\n background: #FFFFFF;\r\n }\r\n\r\n .div {\r\n display: block;\r\n }\r\n\r\n .control-section {\r\n padding-left: 4px;\r\n }\r\n\r\n .crumb-sample {\r\n color: #000000;\r\n line-height: 18px;\r\n }\r\n\r\n #description {\r\n padding-bottom: 16px;\r\n padding-left: 20px;\r\n opacity: 0.75;\r\n font-family: Roboto;\r\n font-size: 13px;\r\n color: #000000;\r\n text-align: left;\r\n padding-top: 14px;\r\n }\r\n\r\n #action-description {\r\n padding-left: 20px;\r\n padding-bottom: 15px;\r\n opacity: 0.75;\r\n font-family: Roboto;\r\n font-size: 13px;\r\n color: #000000;\r\n text-align: left;\r\n }\r\n\r\n #description-section {\r\n padding-left: 20px;\r\n padding-top: 30px;\r\n opacity: 0.87;\r\n font-family:Roboto;\r\n font-weight: 700;\r\n font-size: 15px;\r\n color: #000000;\r\n text-align: left;\r\n }\r\n\r\n\r\n\r\n </style>\r\n</head>\r\n\r\n<body class='e-view ej2-new' aria-busy=\"true\">\r\n <div class=\"sample-browser\">\r\n <div id='sample-header' class=\"sb-header\" role=\"banner\">\r\n <div class='sb-header-left sb-left sb-table'>\r\n <div class='sb-header-item sb-table-cell'>\r\n <div class=\"header-logo\">\r\n <a href=\"https://ej2.syncfusion.com/home/react.html\" target=\"\" rel=\"noopener noreferrer\">\r\n <div class=\"footer-logo\"> </div>\r\n </a>\r\n </div>\r\n \r\n </div>\r\n <div class=\"sb-header-splitter sb-download-splitter\"></div>\r\n <div class='sb-header-item sb-table-cell'>\r\n <div id='sb-header-text' class='e-sb-header-text'>\r\n \r\n <span class='sb-header-text-left'>Essential JS 2 for React</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class='sb-header-right sb-right sb-table'>\r\n <div class='sb-header-item sb-table-cell'>\r\n <div class='product-style'>\r\n <div><a href=\"https://www.syncfusion.com/products/react/color-picker\">PRODUCT DETAILS</a></div>\r\n </div>\r\n </div>\r\n <div class='sb-header-item sb-table-cell'>\r\n <div class=\"sb-header-item sb-table-cell sb-download-wrapper\">\r\n <a href=\"https://www.syncfusion.com/downloads/essential-js2\" target=\"_blank\">\r\n <button id=\"download-now\" class=\"sb-download-btn\">\r\n <span class=\"sb-download-text\">DOWNLOAD</span>\r\n </button>\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n <div class ='content e-view'>\r\n <div class='sample-content'>\r\n <div id=\"sample-bread-crumb\" class=\"sb-bread-crumb\">\r\n <div class=\"sb-bread-crumb-text\">\r\n <div class=\"category-allcontrols\"><a href=\"https://ej2.syncfusion.com/react/demos\"><span>All Controls</span></a></div>\r\n <div class=\"category-seperator sb-icons\"> / </div>\r\n <div class=\"category-text bread-ctext\"><a href=\"https://ej2.syncfusion.com/react/demos/#/material/color-picker/default.html\"><span>Color-picker</span></a></div>\r\n <div class=\"category-seperator sb-icons\"> / </div>\r\n <div class=\"crumb-sample\">CustomPalette</div>\r\n </div>\r\n </div>\r\n <div class=\"control-content\">\r\n <div id=\"action-description\">\r\n <p>\r\n \n <p>This sample demonstrates how to customize the color palettes with different types and styles.</p>\n \r\n </p>\r\n </div>\r\n <div class=\"container-fluid\">\r\n <div class=\"control-section\">\r\n <div id='sample'>\r\n <div id='loader'>Loading....</div>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n <div id=\"description-section\">Description</div> \r\n <div id=\"description\">\r\n <p>\r\n \n <p>\n The ColorPicker component is a user interface to select and adjust color values. This supports various color specifications\n like RGB (Red Green Blue), HSV (Hue Saturation Value), and Hex codes.</p>\n <p>\n In this sample,</p>\n <ul>\n <li>\n Select the shirt color from different customized palettes. It contains circle, square, rounded edge, and multiple scroll\n palettes.</li>\n <li>Using the\n <code>\n <a target=\"_blank\" classname=\"code\" href=\"http://ej2.syncfusion.com/documentation/colorpicker/api-colorpicker.html#presetColors-object\">presetColors\n </a>\n </code> property, you can specify the custom colors to be loaded.</li>\n </ul>\n <p>\n More information about ColorPicker can be found in this\n <a target=\"_blank\" href=\"http://ej2.syncfusion.com/documentation/colorpicker/getting-started.html\">\n documentation section</a>.</p>\n \r\n </p> \r\n </div> \r\n </div> \r\n </div>\r\n \r\n </div>\r\n </div>\r\n \r\n</body>\r\n</html>\r\n","app/index.tsx":"import * as ReactDOM from 'react-dom';\r\nimport * as React from 'react';\r\nimport { ColorPickerComponent, ColorPickerEventArgs, PaletteTileEventArgs } from '@syncfusion/ej2-react-inputs';\r\nimport { createElement, Browser } from '@syncfusion/ej2-base';\r\nimport { SampleBase } from './sample-base';\r\n\r\n\r\nexport class CustomPalette extends SampleBase<{}, {}> {\r\n private defaultObj: ColorPickerComponent;\r\n\r\n public circlePaletteColors: { [key: string]: string[] } = {\r\n 'custom': ['#f44336', '#e91e63', '#9c27b0', '#673ab7', '#2196f3', '#03a9f4', '#00bcd4',\r\n '#009688', '#8bc34a', '#cddc39', '#ffeb3b', '#ffc107']\r\n };\r\n\r\n public squarePaletteColors: { [key: string]: string[] } = {\r\n 'custom1': ['#b80000', '#db3e00', '#fccb00', '#008b02',\r\n '#006b76', '#1273de', '#004dcf', '#5300eb',\r\n '#eb9694', '#fad0c3', '#fef3bd', '#c1e1c5',\r\n '#bedadc', '#c4def6', '#bed3f3', '#d4c4fb']\r\n };\r\n\r\n public roundedPaletteColors: { [key: string]: string[] } = {\r\n 'custom1': ['#ff6900', '#fcb900', '#7bdcb5', '#00d084',\r\n '#8ed1fc', '#0693e3', '#abb8c3', '#eb144c',\r\n '#f78da7', '#9900ef']\r\n };\r\n\r\n public scrollPaletteColors: { [key: string]: string[] } = {\r\n 'custom1': ['#ef9a9a', '#e57373', '#ef5350', '#f44336', '#f48fb1', '#f06292',\r\n '#ec407a', '#e91e63', '#ce93d8', '#ba68c8', '#ab47bc', '#9c27b0', '#b39ddb',\r\n '#9575cd', '#7e57c2', '#673AB7'],\r\n 'custom2': ['#9FA8DA', '#7986CB', '#5C6BC0', '#3F51B5', '#90CAF9', '#64B5F6',\r\n '#42A5F5', '#2196F3', '#81D4FA', '#4FC3F7', '#29B6F6', '#03A9F4',\r\n '#80DEEA', '#4DD0E1', '#26C6DA', '#00BCD4'],\r\n 'custom3': ['#80CBC4', '#4DB6AC', '#26A69A', '#009688', '#A5D6A7', '#81C784',\r\n '#66BB6A', '#4CAF50', '#C5E1A5', '#AED581', '#9CCC65', '#8BC34A', '#E6EE9C',\r\n '#DCE775', '#D4E157', '#CDDC39'],\r\n 'custom4': ['#FFF59D', '#FFF176', '#FFEE58', '#FFEB3B', '#FFE082', '#FFD54F',\r\n '#FFCA28', '#FFC107', '#FFCC80', '#FFB74D', '#FFA726', '#FF9800', '#FFAB91',\r\n '#FF8A65', '#FF7043', '#FF5722']\r\n };\r\n\r\n public beforeCircleTileRender(args: PaletteTileEventArgs): void {\r\n args.element.classList.add('e-circle-palette');\r\n args.element.appendChild(createElement('span', { className: 'e-circle-selection' }));\r\n }\r\n\r\n public beforeSquareTileRender(args: PaletteTileEventArgs): void {\r\n args.element.classList.add('e-square-palette');\r\n }\r\n\r\n public beforeRoundedTileRender(args: PaletteTileEventArgs): void {\r\n args.element.classList.add('e-rounded-palette');\r\n }\r\n\r\n public beforeScrollTileRender(args: PaletteTileEventArgs): void {\r\n args.element.classList.add('e-icons');\r\n args.element.classList.add('e-scroll-palette');\r\n }\r\n\r\n // function to handle the ColorPicker change event\r\n public change(args: ColorPickerEventArgs): void {\r\n document.getElementById('e-shirt-preview').style.backgroundColor = args.currentValue.hex;\r\n }\r\n\r\n public roundedPaletteChange(args: ColorPickerEventArgs): void {\r\n (this.defaultObj.element.nextElementSibling.querySelector('.e-selected') as HTMLElement).style.boxShadow\r\n = args.currentValue.hex + ' 0 0 7px';\r\n document.getElementById('e-shirt-preview').style.backgroundColor = args.currentValue.hex;\r\n}\r\n\r\n\r\n public rendereComplete(): void {\r\n if (Browser.isDevice) {\r\n document.getElementById('custom-control').classList.add('e-mobile-control');\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div className='control-pane'>\r\n <div className='control-section'>\r\n <div id='custom-control'>\r\n <div className='row'>\r\n <div id=\"e-shirt-preview\"></div>\r\n </div>\r\n <div id='custom-content' className='row'>\r\n <div className='col-xs-12 col-sm-12 col-lg-6 col-md-6 e-circle-wrap'>\r\n <ColorPickerComponent id='circle-palette' mode='Palette' modeSwitcher={false} inline={true} showButtons={false} columns={4} presetColors={this.circlePaletteColors} beforeTileRender={this.beforeCircleTileRender.bind(this)} change={this.change.bind(this)}></ColorPickerComponent>\r\n </div>\r\n <div className='col-xs-12 col-sm-12 col-lg-6 col-md-6 e-rounded-wrap'>\r\n <ColorPickerComponent id='rounded-palette' mode='Palette' ref={(scope) => { this.defaultObj = scope; }} modeSwitcher={false} inline={true} showButtons={false} columns={5} presetColors={this.roundedPaletteColors} beforeTileRender={this.beforeRoundedTileRender.bind(this)} change={this.roundedPaletteChange.bind(this)}></ColorPickerComponent>\r\n </div>\r\n <div className='col-xs-12 col-sm-12 col-lg-6 col-md-6 e-square-wrap'>\r\n <ColorPickerComponent id='square-palette' mode='Palette' modeSwitcher={false} inline={true} showButtons={false} columns={8} presetColors={this.squarePaletteColors} beforeTileRender={this.beforeSquareTileRender.bind(this)} change={this.change.bind(this)}></ColorPickerComponent>\r\n </div>\r\n <div className='col-xs-12 col-sm-12 col-lg-6 col-md-6 e-scroll-wrap'>\r\n <ColorPickerComponent id='scroll-palette' mode='Palette' modeSwitcher={false} inline={true} showButtons={false} columns={4} presetColors={this.scrollPaletteColors} beforeTileRender={this.beforeScrollTileRender.bind(this)} change={this.change.bind(this)}></ColorPickerComponent>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div >\r\n )\r\n }\r\n}\r\n\nReactDOM.render(<CustomPalette />, document.getElementById('sample'));","app/sample-base.tsx":"import * as ReactDOM from 'react-dom';\r\nimport * as React from 'react';\r\nimport { RouteComponentProps } from 'react-router-dom';\r\nimport { enableRipple } from '@syncfusion/ej2-base';\r\n\r\nenableRipple((window as any).ripple);\r\nexport class SampleBase<P, S> extends React.PureComponent<RouteComponentProps<any> & P, S>{\r\n public rendereComplete(): void {\r\n /**custom render complete function */\r\n }\r\n componentDidMount(): void {\r\n setTimeout(() => {\r\n this.rendereComplete();\r\n }\r\n );\r\n }\r\n}"}