Step by step jquery process designer plug-in Goflow (with code)-1-Build Designer UI interface

Source: Internet
Author: User

Before using Silverlight to implement a process designer (Demo), it is not very convenient to use. intends to refer to Gooflow, combined with their own understanding of the workflow, with the implementation of jquery to achieve one, and strive to be simple and practical.

The first step is to build the UI interface for the designer, as follows:

The icons used are:

CSS wizards such as CSS Satyr can be used to fit together.

C # String.Format used to think that JS in the spelling of the string does not work, the first simulation to achieve a:

function formatString () {    var formatstr = arguments[0];    if (typeof formatstr = = = ' String ') {        var pattern;        for (var i = 1; i < arguments.length; i++) {            pattern = new RegExp (' \\{' + (i-1) + ' \ \} ', ' G ');            Formatstr = Formatstr.replace (pattern, arguments[i]);        }    } else {        formatstr = ';    }    return formatstr;};

Use the jquery plugin notation:

(function  ($, undefined) {    // define Goflow class    function  () {            } ;     // Initialize the Goflow object (Gfdiv:jquery object; opts: parameters)    function (Gfdiv, opts) {            };     // Definition of plug     -in    function (opts) {            // closure End  

Code: Goflow_01.zip

Step by step jquery process designer plug-in Goflow (with code)-1-Build Designer UI interface

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.