com.github.fluorumlabs.disconnect.polymer.mixins.HasDirMixin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of disconnect-polymer Show documentation
Show all versions of disconnect-polymer Show documentation
Polymer 3 bindings for Disconnect Zero
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