Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Bem from '../../../../util/Bem';
- export default class Sort {
- constructor() {
- this.bem = new Bem('cmp-search-sort');
- this.component = $(this.bem.selector());
- this.sortByElement = this.component.element(this.bem.scope('selection', 'sort-by').selector());
- this.sortDirectionElement = this.component.element(this.bem.scope('selection', 'sort-direction').selector());
- }
- get sortByLabel() {
- return this.sortByElement.element(this.bem.element('selection-text'));
- }
- get sortByOptions() {
- return this.sortByElement.elements(this.bem.element('selection-item'))
- }
- get sortDirectionLabel() {
- return this.sortDirectionElement.element(this.bem.element('selection-text'));
- }
- get sortDirectionOptions() {
- return this.sortDirectionElement.elements(this.bem.element('selection-item'));
- }
- }
Add Comment
Please, Sign In to add comment