Ext.data.JsonP.Ext_Version({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":null,"uses":[],"html":"
Files
A utility class that wrap around a string version number and provide convenient\nmethod to perform comparison. See also: compare. Example:
\n\nvar version = new Ext.Version('1.0.2beta');\nconsole.log(\"Version is \" + version); // Version is 1.0.2beta\n\nconsole.log(version.getMajor()); // 1\nconsole.log(version.getMinor()); // 0\nconsole.log(version.getPatch()); // 2\nconsole.log(version.getBuild()); // 0\nconsole.log(version.getRelease()); // beta\n\nconsole.log(version.isGreaterThan('1.0.1')); // True\nconsole.log(version.isGreaterThan('1.0.2alpha')); // True\nconsole.log(version.isGreaterThan('1.0.2RC')); // False\nconsole.log(version.isGreaterThan('1.0.2')); // False\nconsole.log(version.isLessThan('1.0.2')); // True\n\nconsole.log(version.match(1.0)); // True\nconsole.log(version.match('1.0.2')); // True\n
\nThe version number in the following standard format:
\n\nmajor[.minor[.patch[.build[release]]]]\n
\n\nExamples:
\n\n1.0\n1.2.3beta\n1.2.3.4RC\n
\nthis
\nReturns whether this version matches the supplied argument. Example:
\n\nvar version = new Ext.Version('1.0.2beta');\nconsole.log(version.match(1)); // True\nconsole.log(version.match(1.0)); // True\nconsole.log(version.match('1.0.2')); // True\nconsole.log(version.match('1.0.2RC')); // False\n
\nTrue if this version matches the target, false otherwise
\nReturns this format: [major, minor, patch, build, release]. Useful for comparison
\nCompare 2 specified versions, starting from left to right. If a part contains special version strings,\nthey are handled in the following order:\n'dev' < 'alpha' = 'a' < 'beta' = 'b' < 'RC' = 'rc' < '#' < 'pl' = 'p' < 'anything else'
\nThe current version to compare to
\nThe target version to compare to
\nReturns -1 if the current version is smaller than the target version, 1 if greater, and 0 if they're equivalent
\n