Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

yesText in material-stepper seems not to work. #438

Open
giorgiofran opened this issue Sep 21, 2019 · 0 comments
Open

yesText in material-stepper seems not to work. #438

giorgiofran opened this issue Sep 21, 2019 · 0 comments

Comments

@giorgiofran
Copy link

giorgiofran commented Sep 21, 2019

I'm using:
Dart 2.5.0,

dependencies:
  angular: ^5.3.0
  angular_components: ^0.13.0

If I set a text on yesText in a MaterialStepperComponent, the stepper ignores it and shows "Continue".

I have simply taken the first example and added yesText="OK"

    <h2>Horizontal orientation, backwards jumps allowed, and default size</h2>
    <material-stepper legalJumps="backwards"
                      orientation="horizontal"
                      yesText="ok"
                      size="default">
        <template step name="Step A Title"
                  (continue)="validDelayedCheck($event)">
            <div class="step-a">
                <h1>Content A</h1>
                (1s continue validation)
            </div>
        </template>
        <template step name="Step B Title"
                  (cancel)="validDelayedCheck($event)">
            <div class="step-b">
                <h1>Content B</h1>
                (1s cancel validation time)
            </div>
        </template>
        <template step name="Step C Title">
            <div class="step-c">
                <h1>Content C</h1>
            </div>
        </template>
        <template step name="Step D Title">
            <div class="step-d">
                <h1>Content C</h1>
            </div>
        </template>
    </material-stepper>

Doing the same with noText works.

I have seen also that, on the first step, the cancel button is not shown. Is it correct?
In my case it could be useful to go back to the component where the stepper was called.

It could be also interesting to have yesText and noText at step level.

Update 1:
It seems that the attribute "yesText" does not exist anymore, but in the example gallery is still there.
Anyone can explain me what is correct? Should I use custom buttons?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant