How to use the oc.comment function in oc

To help you get started, we’ve selected a few oc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ivandoric / Making-Websites-With-October-CMS / plugins / rainlab / builder / formwidgets / formbuilder / assets / js / formbuilder.domtopropertyjson.js View on Github external
function preProcessSpecialProperties(properties) {
        delete properties['oc.fieldName']

        if (String(properties['oc.comment']).length > 0 && properties['oc.commentPosition'] == 'above') {
            properties['commentAbove'] = properties['oc.comment']

            if (properties['comment'] !== undefined) {
                delete properties['comment']
            }

            delete properties['oc.comment']
            delete properties['oc.commentPosition']
        }

        if (String(properties['oc.comment']).length > 0 && properties['oc.commentPosition'] == 'below') {
            properties['comment'] = properties['oc.comment']

            if (properties['comentAbove'] !== undefined) {
                delete properties['comentAbove']
            }

            delete properties['oc.comment']
            delete properties['oc.commentPosition']
        }

        if (properties['oc.comment'] !== undefined) {
            if (String(properties['oc.comment']).length > 0) {
github ivandoric / Making-Websites-With-October-CMS / plugins / rainlab / builder / formwidgets / formbuilder / assets / js / formbuilder.domtopropertyjson.js View on Github external
properties['comment'] = properties['oc.comment']

            if (properties['comentAbove'] !== undefined) {
                delete properties['comentAbove']
            }

            delete properties['oc.comment']
            delete properties['oc.commentPosition']
        }

        if (properties['oc.comment'] !== undefined) {
            if (String(properties['oc.comment']).length > 0) {
                properties['comment'] = properties['oc.comment']
            }

            delete properties['oc.comment']
        }
    }
github ivandoric / Making-Websites-With-October-CMS / plugins / rainlab / builder / formwidgets / formbuilder / assets / js / formbuilder.domtopropertyjson.js View on Github external
delete properties['oc.comment']
            delete properties['oc.commentPosition']
        }

        if (String(properties['oc.comment']).length > 0 && properties['oc.commentPosition'] == 'below') {
            properties['comment'] = properties['oc.comment']

            if (properties['comentAbove'] !== undefined) {
                delete properties['comentAbove']
            }

            delete properties['oc.comment']
            delete properties['oc.commentPosition']
        }

        if (properties['oc.comment'] !== undefined) {
            if (String(properties['oc.comment']).length > 0) {
                properties['comment'] = properties['oc.comment']
            }

            delete properties['oc.comment']
        }
    }
github ivandoric / Making-Websites-With-October-CMS / plugins / rainlab / builder / formwidgets / formbuilder / assets / js / formbuilder.domtopropertyjson.js View on Github external
function preProcessSpecialProperties(properties) {
        delete properties['oc.fieldName']

        if (String(properties['oc.comment']).length > 0 && properties['oc.commentPosition'] == 'above') {
            properties['commentAbove'] = properties['oc.comment']

            if (properties['comment'] !== undefined) {
                delete properties['comment']
            }

            delete properties['oc.comment']
            delete properties['oc.commentPosition']
        }

        if (String(properties['oc.comment']).length > 0 && properties['oc.commentPosition'] == 'below') {
            properties['comment'] = properties['oc.comment']

            if (properties['comentAbove'] !== undefined) {
                delete properties['comentAbove']
            }

oc

A framework for developing and distributing html components

MIT
Latest version published 2 months ago

Package Health Score

78 / 100
Full package analysis