-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pipeline
committed
Sep 19, 2023
1 parent
a206a6e
commit 5b757e3
Showing
706 changed files
with
26,099 additions
and
6,807 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,26 @@ | ||
<div class="col-lg-12 control-section"> | ||
<div class="control-wrapper"> | ||
<div style='padding-top:70px;'> | ||
<input type="text" id="data" tabindex="1" /> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="action-description"> | ||
<p>This example demonstrates the virtualization support of the AutoComplete. The component has 150 items bound to it; however, when you open the suggestion list, only few items are loaded based on the popup height, and the remaining items are loaded while scrolling.</p> | ||
</div> | ||
|
||
<div id="description"> | ||
<p>The <code>AutoComplete</code> component supports virtualization, which improves UI performance for large amounts of data. To enable virtualization, set the <code>enableVirtualization</code> property to true. When virtualization is enabled, AutoComplete doesn't render the entire suggestion data source on initial component rendering. It loads the N number of items in the popup on initial rendering and the remaining set number of items will load while scrolling. | ||
Virtualization works with both local and remote data.</p> | ||
<p>To perform the virtualization feature in AutoComplete, the <code>VirtualSCroll</code> module | ||
have to be injected in the application end.</p> | ||
</div> | ||
<!-- custom code start --> | ||
<style> | ||
.control-wrapper { | ||
margin: 0 auto; | ||
width: 250px; | ||
} | ||
</style> | ||
<!-- custom code end--> |
This file contains 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,34 @@ | ||
import { loadCultureFiles } from '../common/culture-loader'; | ||
/** | ||
* AutoComplete Default functionality Sample | ||
*/ | ||
import { AutoComplete, VirtualScroll } from '@syncfusion/ej2-dropdowns'; | ||
import * as data from './dataSource.json'; | ||
|
||
AutoComplete.Inject(VirtualScroll); | ||
|
||
let records: { [key: string]: Object }[] = []; | ||
|
||
for (let i = 1; i <= 150; i++) { | ||
const item: { [key: string]: Object } = { | ||
id: 'id' + i, | ||
text: `Item ${i}`, | ||
}; | ||
records.push(item); | ||
} | ||
|
||
(window as any).default = (): void => { | ||
loadCultureFiles(); | ||
// initialize AutoComplete component | ||
let atcObj: AutoComplete = new AutoComplete({ | ||
//set the local data to dataSource property | ||
dataSource: records, | ||
popupHeight: '200px', | ||
//enable the virtualization property | ||
enableVirtualization: true, | ||
fields: { text: 'text', value: 'text' }, | ||
// set the placeholder to AutoComplete input element | ||
placeholder: 'e.g. Item 1' | ||
}); | ||
atcObj.appendTo('#data'); | ||
}; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,90 @@ | ||
<div class="control-section indicator-type-section"> | ||
<div class="col-lg-12 content-wrapper"> | ||
<div class="row"> | ||
<div class="col-lg-6 carousel-sample"> | ||
<h4>Default Indicator</h4> | ||
<div id="default-carousel"></div> | ||
</div> | ||
<div class="col-lg-6 carousel-sample"> | ||
<h4>Dynamic Indicator</h4> | ||
<div id="dynamic-carousel"></div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-lg-6 carousel-sample"> | ||
<h4>Fraction Indicator</h4> | ||
<div id="fraction-carousel"></div> | ||
</div> | ||
<div class="col-lg-6 carousel-sample"> | ||
<h4>Progress Indicator</h4> | ||
<div id="progress-carousel"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<style> | ||
.indicator-type-section .carousel-sample { | ||
margin: -0.5em 0 5.6em 0; | ||
height: 200px; | ||
} | ||
|
||
.indicator-type .e-carousel-items .e-carousel-item .img-container { | ||
height: 100%; | ||
} | ||
|
||
.indicator-type.e-carousel .e-progress { | ||
background: none; | ||
} | ||
|
||
.indicator-type.e-carousel .e-next-icon::before, | ||
.indicator-type.e-carousel .e-previous-icon::before { | ||
color: black; | ||
} | ||
|
||
.indicator-type { | ||
border: 1px solid #d7d7d7; | ||
} | ||
|
||
.indicator-type .e-slide { | ||
height: 100%; | ||
width: 100%; | ||
margin-top: 4em; | ||
font-size: 21px; | ||
text-align: center; | ||
color: black; | ||
} | ||
|
||
.indicator-type.e-carousel .e-carousel-indicators.e-dynamic .e-indicator-bars .e-indicator-bar:not(.e-active), | ||
.indicator-type.e-carousel .e-carousel-indicators.e-default .e-indicator-bars .e-indicator-bar:not(.e-active) div { | ||
background-color: gray; | ||
} | ||
|
||
.indicator-type.e-carousel .e-carousel-indicators.e-fraction .e-indicator-bars { | ||
color: black; | ||
} | ||
|
||
.indicator-type.e-carousel .e-carousel-items .e-carousel-item { | ||
background-color: #f9f8f8; | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.indicator-type-section .carousel-sample { | ||
margin: 5em 0; | ||
} | ||
|
||
.indicator-type-section .row { | ||
margin-top: -5em; | ||
} | ||
} | ||
</style> | ||
|
||
<div id="action-description"> | ||
<p>This sample demonstrates the types of indicators in the <a href="https://www.syncfusion.com/javascript-ui-controls/js-carousel" target="_blank">JavaScript Carousel</a> component.</p> | ||
</div> | ||
<div id="description"> | ||
<p>In this demo, the available types of indicators of JavaScript Carousel are showcased. They are <code>default</code>, <code>dynamic</code>, <code>progress</code> and <code>fraction</code>, and can be set using the <strong>indicatorsType</strong> property. </p> | ||
<p><code>Default</code> - The Carousel displays indicators with a bullet design.</p> | ||
<p><code>Dynamic</code> - The Carousel applies dynamic animation to the indicators.</p> | ||
<p><code>Fraction</code> - The Carousel displays slides numerically as indicators.</p> | ||
<p><code>Progress</code> - The Carousel displays indicators like a progress bar.</p> | ||
</div> |
Oops, something went wrong.