<html><head><title>Stepper Linear Example</title><metacharset="UTF-8" /><linkrel="shortcut icon"href="https://static.infragistics.com/xplatform/images/browsers/wc.png" /><linkrel="stylesheet"href="https://fonts.googleapis.com/icon?family=Material+Icons" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Kanit&display=swap" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Titillium Web" /><linkrel="stylesheet"href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css"type="text/css" /></head><body><divid="root"><divclass="container sample"><igc-switch>Linear</igc-switch><br /><igc-stepperid="stepper"><igc-stepinvalid><spanslot="title">Personal Info</span><form><igc-inputrequiredlabel="Full Name"type="text"name="fullName"></igc-input><igc-inputrequiredlabel="Email"type="email"name="email"></igc-input><br /><igc-buttonclass="next"onclick="stepper.next()">NEXT</igc-button></form></igc-step><igc-stepinvalid><spanslot="title">Delivery address</span><form><igc-inputrequiredlabel="City"type="text"name="city"></igc-input><igc-inputrequiredlabel="Street"type="text"name="street"></igc-input><br /><igc-buttononclick="stepper.prev()">PREVIOUS</igc-button><igc-buttonclass="next"onclick="stepper.next()">NEXT</igc-button></form></igc-step><igc-stepoptional><spanslot="title">Billing address</span><spanslot="subtitle">(optional)</span><form><igc-inputlabel="City"type="text"name="bill-city"></igc-input><igc-inputlabel="Street"type="text"name="bill-city"></igc-input><br /><igc-buttononclick="stepper.prev()">PREVIOUS</igc-button><igc-buttononclick="stepper.next()">NEXT</igc-button></form></igc-step><igc-stepinvalid><spanslot="title">Payment</span><form><igc-radio-group><igc-radioname="payment"required>PayPal (n@mail.com; 18/02/2021)</igc-radio><igc-radioname="payment"required>Visa (**** **** **** 1234; 12/23)</igc-radio><igc-radioname="payment"required>MasterCard (**** **** **** 5678; 12/24)</igc-radio></igc-radio-group><br /><igc-buttononclick="stepper.prev()">PREVIOUS</igc-button><igc-buttonclass="next"onclick="stepper.next()">SUBMIT</igc-button></form></igc-step><igc-step><spanslot="title">Delivery status</span><p>Your order is on its way. Expect delivery on 25th September 2021. Delivery address: San Jose, CA 94243.</p><br /><igc-buttononclick="stepper.prev()">PREVIOUS</igc-button><igc-buttononclick="stepper.reset()">RESET</igc-button></igc-step></igc-stepper></div></div><!-- This script is needed only for parcel and it will be excluded for webpack -->
<% if (false) { %>
<scriptsrc="src/index.ts"></script>
<% } %>
</body></html>html
/* shared styles are loaded from: *//* https://static.infragistics.com/xplatform/css/samples */css
igc-switch {
margin-left: 0.5rem;
}css
このサンプルが気に入りましたか? 完全な Ignite UI for Web Componentsツールキットにアクセスして、すばやく独自のアプリの作成を開始します。無料でダウンロードできます。
Web Components ステッパーを使用した作業の開始
まず、次のコマンドを実行して Ignite UI for Web Components をインストールする必要があります:
<html><head><title>Stepper Title Position And Orientation Example</title><metacharset="UTF-8" /><linkrel="shortcut icon"href="https://static.infragistics.com/xplatform/images/browsers/wc.png" /><linkrel="stylesheet"href="https://fonts.googleapis.com/icon?family=Material+Icons" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Kanit&display=swap" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Titillium Web" /><linkrel="stylesheet"href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css"type="text/css" /></head><body><divid="root"><divclass="container sample"><divclass="radio-groups"><divclass="radio-group"><label>Title position</label><divclass="radio-group-container"><igc-radio-groupid="titlePosition"alignment="horizontal"><igc-radioname="position"value="top">Top</igc-radio><igc-radioname="position"value="bottom">Bottom</igc-radio><igc-radioname="position"value="start">Start</igc-radio><igc-radioname="position"value="end">End</igc-radio><igc-radioname="position"value=""checked>Default</igc-radio></igc-radio-group></div></div><divclass="radio-group"><label>Orientation</label><divclass="radio-group-container"><igc-radio-groupid="orientation"alignment="horizontal"><igc-radioname="orientation"value="horizontal"checked>Horizontal</igc-radio><igc-radioname="orientation"value="vertical">Vertical</igc-radio></igc-radio-group></div></div></div><igc-stepperid="stepper"><igc-step><spanslot="title">Order</span></br><igc-buttononclick="stepper.next()">NEXT</igc-button></igc-step><igc-step><spanslot="title">Payment</span></br><igc-buttononclick="stepper.prev()">PREVIOUS</igc-button><igc-buttononclick="stepper.next()">NEXT</igc-button></igc-step><igc-step><spanslot="title">Confirmation</span></br><igc-buttononclick="stepper.prev()">PREVIOUS</igc-button><igc-buttononclick="stepper.reset()">RESET</igc-button></igc-step></igc-stepper></div></div><!-- This script is needed only for parcel and it will be excluded for webpack -->
<% if (false) { %>
<scriptsrc="src/index.ts"></script>
<% } %>
</body></html>html
/* shared styles are loaded from: *//* https://static.infragistics.com/xplatform/css/samples */css
<html><head><title>Stepper Step Type Example</title><metacharset="UTF-8" /><linkrel="shortcut icon"href="https://static.infragistics.com/xplatform/images/browsers/wc.png" /><linkrel="stylesheet"href="https://fonts.googleapis.com/icon?family=Material+Icons" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Kanit&display=swap" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Titillium Web" /><linkrel="stylesheet"href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css"type="text/css" /></head><body><divid="root"><divclass="container sample"><label>Step type</label><divclass="radio-group-container"><igc-radio-groupid="titlePosition"alignment="horizontal"><igc-radioname="position"value="indicator">Indicator</igc-radio><igc-radioname="position"value="title">Title</igc-radio><igc-radioname="position"value="full"checked>Full</igc-radio></igc-radio-group></div><igc-stepperid="stepper"><igc-step><spanslot="title">Pricing Plan</span></igc-step><igc-step><spanslot="title">Car Details</span></igc-step><igc-step><spanslot="title">Payment</span></igc-step></igc-stepper></div></div><!-- This script is needed only for parcel and it will be excluded for webpack -->
<% if (false) { %>
<scriptsrc="src/index.ts"></script>
<% } %>
</body></html>html
/* shared styles are loaded from: *//* https://static.infragistics.com/xplatform/css/samples */css
<html><head><title>Stepper Animations Example</title><metacharset="UTF-8" /><linkrel="shortcut icon"href="https://static.infragistics.com/xplatform/images/browsers/wc.png" /><linkrel="stylesheet"href="https://fonts.googleapis.com/icon?family=Material+Icons" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Kanit&display=swap" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Titillium Web" /><linkrel="stylesheet"href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css"type="text/css" /></head><section><divid="root"><sectionclass="container sample"><articleclass="settings"><igc-selectid="orientation"label="Orienation"><igc-select-itemvalue="horizontal"selected>Horizontal</igc-select-item><igc-select-itemvalue="vertical">Vertical</igc-select-item></igc-select><igc-selectid="vanimation"label="Vertical Animation"><igc-select-itemvalue="grow"selected>Grow</igc-select-item><igc-select-itemvalue="fade">Fade</igc-select-item><igc-select-itemvalue="none">None</igc-select-item></igc-select><igc-selectid="hanimation"label="Horizontal Animation"><igc-select-itemvalue="slide"selected>Slide</igc-select-item><igc-select-itemvalue="fade">Fade</igc-select-item><igc-select-itemvalue="none">None</igc-select-item></igc-select><igc-inputid="duration"type="number"value="320"label="Duration"><spanslot="suffix">ms</span></igc-input></article><igc-stepperid="stepper"><igc-step><spanslot="title">Personal Info</span><form><igc-inputlabel="Full Name"type="text"name="fullName"></igc-input><igc-inputlabel="Email"type="email"name="email"></igc-input><br /><igc-buttonclass="next"onclick="stepper.next()">NEXT</igc-button></form></igc-step><igc-step><spanslot="title">Delivery address</span><form><igc-inputlabel="City"type="text"name="city"></igc-input><igc-inputlabel="Street"type="text"name="street"></igc-input><br /><igc-buttononclick="stepper.prev()">PREVIOUS</igc-button><igc-buttonclass="next"onclick="stepper.next()">NEXT</igc-button></form></igc-step><igc-step><spanslot="title">Payment</span><form><igc-radio-group><igc-radioname="payment"checked>PayPal (n@mail.com; 18/02/2021)</igc-radio><igc-radioname="payment">Visa (**** **** **** 1234; 12/23)</igc-radio><igc-radioname="payment">MasterCard (**** **** **** 5678; 12/24)</igc-radio></igc-radio-group><br /><igc-buttononclick="stepper.prev()">PREVIOUS</igc-button><igc-buttonclass="next"onclick="stepper.next()">SUBMIT</igc-button></form></igc-step><igc-step><spanslot="title">Delivery status</span><p>Your order is on its way. Expect delivery on 25th September 2021. Delivery address: San Jose, CA 94243.</p><br /><igc-buttononclick="stepper.prev()">PREVIOUS</igc-button><igc-buttononclick="stepper.reset()">RESET</igc-button></igc-step></igc-stepper></div></section><!-- This script is needed only for parcel and it will be excluded for webpack -->
<% if (false) { %>
<scriptsrc="src/index.ts"></script>
<% } %>
</body></html>html
Ignite UI for Web Components ステッパーは、さまざまなキーボード操作をエンドユーザーに提供します。この機能はデフォルトで有効になっており、エンドユーザーは簡単にステップを移動できます。
Web Components IgcStepperComponent ナビゲーションは W3 アクセシビリティ標準に準拠しており、便利に使用できます。