udes-functions-mixins

WebJar for udes-functions-mixins

License

License

MIT
Categories

Categories

Mixin Application Layer Libs Bytecode Manipulation
GroupId

GroupId

org.webjars.bowergithub.udeselements
ArtifactId

ArtifactId

udes-functions-mixins
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

udes-functions-mixins
WebJar for udes-functions-mixins
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/UdeSElements/udes-functions-mixins

Download udes-functions-mixins

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.udeselements/udes-functions-mixins/ -->
<dependency>
    <groupId>org.webjars.bowergithub.udeselements</groupId>
    <artifactId>udes-functions-mixins</artifactId>
    <version>3.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.udeselements/udes-functions-mixins/
implementation 'org.webjars.bowergithub.udeselements:udes-functions-mixins:3.0.0'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.udeselements/udes-functions-mixins/
implementation ("org.webjars.bowergithub.udeselements:udes-functions-mixins:3.0.0")
'org.webjars.bowergithub.udeselements:udes-functions-mixins:jar:3.0.0'
<dependency org="org.webjars.bowergithub.udeselements" name="udes-functions-mixins" rev="3.0.0">
  <artifact name="udes-functions-mixins" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.udeselements', module='udes-functions-mixins', version='3.0.0')
)
libraryDependencies += "org.webjars.bowergithub.udeselements" % "udes-functions-mixins" % "3.0.0"
[org.webjars.bowergithub.udeselements/udes-functions-mixins "3.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

Published on webcomponents.org Polymer 2 supported Build status

UdeS.FunctionsMixins

This repository provides useful functions to help you create faster your Polymer applications and components.

In Polymer, when we want to use a dom-if, we should provide it a boolean property. However, when we want to provide the result of a function, we must define that function inside our element, even if that function is simple as note > 60 by example.

By using the UdeS.FunctionsMixins, you no longer need to create and maintain theses custom functions. You could simply write your dom-if as below:

<template is="dom-if" if="[[greaterThan(note, 60)]]">
</template>

Mixins

Base mixins

  • UdeS.ArrayFunctionsMixin

    • array Return an array of arguments.
    • at Return the element of array at the specified index.
  • EqualityOperatorsMixin

    • equal Perform a comparison (a == b) on all arguments.
    • strictEqual Perform a strict comparison (a === b) on all arguments.
    • notEqual Perform a comparison (a != b) on all arguments.
    • notStrictEqual Perform a strict comparison (a !== b) on all arguments.
  • UdeS.IsFunctionsMixin

    • isAllUndefined Check if the all variables are undefined.
    • isArray Check if the variable is an array.
    • isEmptyArray Check to see if an array is empty.
    • isEmptyObject Check to see if an object is empty (contains no enumerable properties).
    • isEmptyString Check to see if a string is empty.
    • isInteger Check to see if a string is an integer.
    • isPositiveInteger Check to see if a string is a positive integer.
    • isUndefined Check if at least one variable is undefined.
    • isUndefinedVariable Check if the variable is undefined.
  • UdeS.LogicalOperatorsMixin

    • and And function (&&).
    • iif If function.
    • not Not function (!).
    • or Or function (||).
    • xor Exclusive or function.

Grouping mixins

  • UdeS.ComparisonOperatorsMixins
    • UdeS.EqualityOperatorsMixin
    • UdeS.RelationalOperatorsMixin
  • UdeS.FunctionsMixins
    • UdeS.ArrayFunctionsMixin
    • UdeS.ComparisonOperatorsMixins
      • UdeS.EqualityOperatorsMixin
      • UdeS.RelationalOperatorsMixin
    • UdeS.IsFunctionsMixin

Versions

Version
3.0.0