Skip to content
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

Custom HTML for next and prev button #839

Open
ngocsangyem opened this issue Dec 21, 2020 · 1 comment
Open

Custom HTML for next and prev button #839

ngocsangyem opened this issue Dec 21, 2020 · 1 comment

Comments

@ngocsangyem
Copy link

Is it possible to custom the HTML of the next and prev button?

@Asef00
Copy link

Asef00 commented Jul 2, 2022

I didn't find any prop or option for this. But you can use the CSS content property:

.vdp-datepicker header {
  .prev:after,
  .next:after {
      content: "";
      width: 10px;
      height: 10px;
      display: inline-block;

      border-color: $primary-color;
      border-style: solid;
      border-width: 0.15em 0.15em 0 0;
      border-radius: 1px;

      position: absolute;
      top: calc(50% - 5px);
      left: calc(50% - 5px);
      margin: 0;
  }

  .prev:after {
      transform: rotate(-135deg);
  }
  .next:after {
      transform: rotate(45deg);
  }
}

image

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

No branches or pull requests

2 participants