All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fluorumlabs.disconnect.polymer.mixins.HasDirMixin Maven / Gradle / Ivy

There is a newer version: 0.1.0-alpha2
Show newest version
package com.github.fluorumlabs.disconnect.polymer.mixins;

import com.github.fluorumlabs.disconnect.polymer.elements.mixins.DirMixin;
import com.github.fluorumlabs.disconnect.zero.component.Component;

/**
 * Element class mixin that allows elements to use the :dir CSS Selector to have text direction specific
 * styling.
 * 

* With this mixin, any stylesheet provided in the template will transform * :dir into :host([dir]) and sync direction with the page via the * element's dir attribute. *

* Elements can opt out of the global page text direction by setting the dir attribute directly in * ready() or in HTML. *

* Caveats: * *

    *
  • Applications must set <html dir="ltr"> or <html dir="rtl"> * to sync * direction
  • *
  • Automatic left-to-right or right-to-left styling is sync'd with the * <html> element only.
  • *
  • Changing dir at runtime is supported.
  • *
  • Opting out of the global direction styling is permanent
  • *
* * @param the type parameter * @param the type parameter */ public interface HasDirMixin> extends HasPropertyAccessors { }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy