-
Notifications
You must be signed in to change notification settings - Fork 4
Add grid theming overview sample #1158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tishko0
wants to merge
1
commit into
vnext
Choose a base branch
from
ttonev/grid-theming
base: vnext
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "printWidth": 250, | ||
| "tabWidth": 4, | ||
| "useTabs": false, | ||
| "semi": true, | ||
| "singleQuote": false, | ||
| "trailingComma": "none", | ||
| "bracketSpacing": true, | ||
| "jsxBracketSameLine": false, | ||
| "fluid": false | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| <!-- NOTE: do not change this file because it's auto re-generated from template: --> | ||
| <!-- https://github.com/IgniteUI/igniteui-wc-examples/tree/vnext/templates/browser/sample/ReadMe.md --> | ||
|
|
||
| This folder contains implementation of Web Components application with example of Grid Theming feature using [Grid](https://infragistics.com/webcomponentssite/components/general-getting-started.html) component. | ||
|
|
||
|
|
||
| <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> | ||
| <body> | ||
| <a target="_blank" href="https://infragistics.com/webcomponentssite/components/general-getting-started.html" rel="noopener noreferrer"> | ||
| <img height="40px" style="border-radius: 0rem" alt="View Docs" src="https://dl.infragistics.com/x/img/browsers/button-docs.png"/> | ||
| </a> | ||
| <a target="_blank" href="./src/index.ts" rel="noopener noreferrer"> | ||
| <img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="View Code" src="https://dl.infragistics.com/x/img/browsers/button-code.png"/> | ||
| </a> | ||
| <a target="_blank" href="https://www.infragistics.com/webcomponents-demos/samples/grids/grid/grid-theming" rel="noopener noreferrer"> | ||
| <img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="Run Sample" src="https://dl.infragistics.com/x/img/browsers/button-run.png"/> | ||
| </a> | ||
| <a target="_blank" href="https://codesandbox.io/s/github/IgniteUI/igniteui-wc-examples/tree/master/samples/grids/grid/grid-theming?fontsize=14&hidenavigation=1&theme=dark&view=preview&file=/src/{SampleFile}" rel="noopener noreferrer"> | ||
| <img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="Run Sample" src="https://dl.infragistics.com/x/img/browsers/button-sandbox.png"/> | ||
| </a> | ||
| </body> | ||
| </html> | ||
|
|
||
| ## Branches | ||
|
|
||
| > **_NOTE:_** You should use [master](https://github.com/IgniteUI/igniteui-angular-examples/tree/master) branch of this repository if you want to run samples on your computer. Use the [vnext](https://github.com/IgniteUI/igniteui-angular-examples/tree/vnext) branch only when you want to contribute new samples to this repository. | ||
|
|
||
| ## Instructions | ||
|
|
||
| To set up this project locally, execute these commands: | ||
|
|
||
| ``` | ||
| git clone https://github.com/IgniteUI/igniteui-wc-examples.git | ||
| git checkout master | ||
| cd ./igniteui-wc-examples | ||
| cd ./samples/grids/grid/grid-theming | ||
| ``` | ||
|
|
||
| open above folder in VS Code or type: | ||
| ``` | ||
| code . | ||
| ``` | ||
|
|
||
| In terminal window, run: | ||
|
|
||
| ``` | ||
| npm install | ||
| npm run start | ||
| ``` | ||
|
|
||
| Then open http://localhost:4200/ in your browser | ||
|
|
||
|
|
||
| ## Learn More | ||
|
|
||
| To learn more about **Ignite UI for Web Components**, check out the [Web Components documentation](https://infragistics.com/webcomponentssite/components/general-getting-started.html). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title>Sample | Ignite UI | Web Components | infragistics</title> | ||
| <meta charset="UTF-8" /> | ||
|
|
||
| <link rel="shortcut icon" href="https://dl.infragistics.com/x/img/browsers/wc.png" > | ||
| <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /> | ||
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Kanit&display=swap" /> | ||
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Titillium Web" /> | ||
| <link rel="stylesheet" href="https://dl.infragistics.com/x/css/samples/shared.v8.css" /> | ||
| <link rel="stylesheet" href="/src/index.css" type="text/css" /> | ||
|
|
||
| </head> | ||
|
|
||
| <body> | ||
| <div id="root"> | ||
|
|
||
| <div class="container sample ig-typography"> | ||
|
|
||
| <div class="options horizontal"> | ||
| <label>Choose Theme:</label> | ||
| <select id="theme-select" class="theme-select"> | ||
| <option value="light-bootstrap">Bootstrap (Light)</option> | ||
| <option value="light-material">Material (Light)</option> | ||
| <option value="light-fluent">Fluent (Light)</option> | ||
| <option value="light-indigo">Indigo (Light)</option> | ||
| <option value="dark-bootstrap">Bootstrap (Dark)</option> | ||
| <option value="dark-material">Material (Dark)</option> | ||
| <option value="dark-fluent">Fluent (Dark)</option> | ||
| <option value="dark-indigo">Indigo (Dark)</option> | ||
| </select> | ||
| </div> | ||
|
|
||
| <div class="container fill"> | ||
| <igc-grid | ||
| auto-generate="false" | ||
| id="grid" | ||
| name="grid" | ||
| primary-key="ProductID" | ||
| allow-filtering="true"> | ||
| <igc-column | ||
| field="ProductName" | ||
| header="Product Name" | ||
| data-type="string" | ||
| sortable="true"> | ||
| </igc-column> | ||
| <igc-column | ||
| field="UnitPrice" | ||
| header="Unit Price" | ||
| data-type="number" | ||
| sortable="true"> | ||
| </igc-column> | ||
| <igc-column | ||
| field="QuantityPerUnit" | ||
| header="Quantity Per Unit" | ||
| data-type="string" | ||
| sortable="true"> | ||
| </igc-column> | ||
| <igc-column | ||
| field="ReorderLevel" | ||
| header="Reorder Level" | ||
| data-type="number" | ||
| sortable="true"> | ||
| </igc-column> | ||
| <igc-column | ||
| field="Discontinued" | ||
| header="Discontinued" | ||
| data-type="boolean" | ||
| sortable="true"> | ||
| </igc-column> | ||
| <igc-column | ||
| field="OrderDate" | ||
| header="Order Date" | ||
| data-type="date" | ||
| sortable="true"> | ||
| </igc-column> | ||
| </igc-grid> | ||
| </div> | ||
| </div> | ||
|
|
||
| </div> | ||
|
|
||
| <!-- This script is needed only for parcel and it will be excluded for webpack --> | ||
| <% if (false) { %><script src="src/index.ts"></script><% } %> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| { | ||
| "name": "example-ignite-ui-web-components", | ||
| "description": "This project provides example of using Ignite UI for Web Components", | ||
| "author": "Infragistics", | ||
| "version": "1.0.0", | ||
| "license": "", | ||
| "private": true, | ||
| "homepage": ".", | ||
| "main": "src/index.ts", | ||
| "scripts": { | ||
| "build": "npm run build:prod", | ||
| "build:dev": "webpack --mode development --config ./webpack.config.js --progress --color --display-error-details", | ||
| "build:prod": "webpack --env.NODE_ENV=production --mode production --config ./webpack.config.js --progress --color --display-error-details --bail", | ||
| "serve:dev": "node --max-old-space-size=8192 node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode development --config ./webpack.config.js --hot --progress --open", | ||
| "serve:prod": "webpack-dev-server --env.NODE_ENV=production --mode production --config ./webpack.config.js --port 3000 --host 0.0.0.0 --hot --progress --open --content-base dist/", | ||
| "start": "npm run serve:dev", | ||
| "build:legacy": "npm run build:prod:legacy", | ||
| "build:dev:legacy": "webpack --env.legacy=true --mode development --config ./webpack.config.js --progress --color --display-error-details", | ||
| "build:prod:legacy": "webpack --env.NODE_ENV=production --env.legacy=true --mode production --config ./webpack.config.js --progress --color --display-error-details --bail", | ||
| "serve:dev:legacy": "node --max-old-space-size=8192 node_modules/webpack-dev-server/bin/webpack-dev-server.js --env.legacy=true --mode development --config ./webpack.config.js --hot --progress --open", | ||
| "serve:prod:legacy": "webpack-dev-server --env.NODE_ENV=production --env.legacy=true --mode production --config ./webpack.config.js --port 3000 --host 0.0.0.0 --hot --progress --open --content-base dist/", | ||
| "start:legacy": "npm run serve:dev:legacy" | ||
| }, | ||
| "dependencies": { | ||
| "@webcomponents/custom-elements": "^1.4.1", | ||
| "@webcomponents/template": "^1.4.2", | ||
| "babel-runtime": "^6.26.0", | ||
| "core-js": "^3.6.5", | ||
| "igniteui-webcomponents-core": "6.3.1", | ||
| "igniteui-webcomponents-grids": "6.3.0-alpha.1", | ||
| "igniteui-webcomponents-inputs": "6.3.1", | ||
| "igniteui-webcomponents-layouts": "6.3.1", | ||
| "lit-html": "^3.3.1", | ||
| "tslib": "^2.8.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/cli": "^7.28.3", | ||
| "@babel/core": "^7.28.4", | ||
| "@babel/plugin-transform-class-properties": "^7.27.1", | ||
| "@babel/plugin-transform-class-static-block": "^7.28.3", | ||
| "@babel/plugin-transform-runtime": "^7.28.3", | ||
| "@babel/preset-env": "^7.28.3", | ||
| "@babel/preset-typescript": "^7.27.1", | ||
| "@types/source-map": "^0.5.7", | ||
| "babel-loader": "^10.0.0", | ||
| "babel-plugin-transform-custom-element-classes": "^0.1.0", | ||
| "css-loader": "^7.1.2", | ||
| "csv-loader": "^3.0.5", | ||
| "file-loader": "^6.2.0", | ||
| "fork-ts-checker-webpack-plugin": "^9.1.0", | ||
| "html-webpack-plugin": "^5.6.4", | ||
| "parcel-bundler": "^1.12.5", | ||
| "source-map": "^0.7.6", | ||
| "style-loader": "^4.0.0", | ||
| "tsconfig-paths-webpack-plugin": "^4.2.0", | ||
| "typescript": "^5.9.2", | ||
| "webpack": "^5.101.3", | ||
| "webpack-cli": "^6.0.1", | ||
| "webpack-dev-server": "^5.2.2", | ||
| "worker-loader": "^3.0.8", | ||
| "xml-loader": "^1.2.1" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "infiniteLoopProtection": false, | ||
| "hardReloadOnChange": false, | ||
| "view": "browser", | ||
| "template": "parcel" | ||
| } | ||
|
|
||
|
dkamburov marked this conversation as resolved.
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ReadMe.md references 'igniteui-angular-examples' repository in the branches section, but this appears to be a Web Components repository. The links should reference 'igniteui-wc-examples' instead.