Skip to content

How to set direction value? #181

Answered by Enlcxx
TicTak21 asked this question in Q&A
Mar 15, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can use LyTheme2 service

import { ..., LyTheme2 } from '@alyle/ui';

export class MyComponent {
  constructor(
    ...
    private _theme: LyTheme2,
  ) {}
  toggleDirection() {
    this._theme.toggleDirection()
  }
}

But to set direction (rtl/ltr) value it is not possible.
This method can be added, but I don't think it's useful, is it?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TicTak21
Comment options

Answer selected by TicTak21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants