How to use quip-apps-compat - 5 common examples

To help you get started, we’ve selected a few quip-apps-compat 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 quip / quip-apps / examples / process-bar / src / menus.js View on Github external
...colors.map(color => ({
            id: color,
            label: localizedColorLabel(color),
            handler: () => {
                quip.apps.getRootRecord().set("color", color);
                refreshToolbar();
            },
            isHeader: false,
        })),
        {
github quip / quip-apps / examples / poll / src / root.jsx View on Github external
...colors.map(color => ({
            id: color,
            label: localizedColorLabel(color),
            handler: () => {
                quip.apps.getRootRecord().set("color", color);
                quip.apps.updateToolbarCommandsState([], [color]);
                quip.apps.recordQuipMetric("set_color");
            },
            isHeader: false,
        })),
    ],
github quip / quip-apps / examples / kanban / src / menus.js View on Github external
...colors.map(color => ({
            id: color,
            label: localizedColorLabel(color),
            handler: (name, context) => {
                const cardRecord = context.cardRecord;
                if (cardRecord.isHeader()) {
                    cardRecord.getColumn().setColor(color);
                } else {
                    cardRecord.setColor(color);
                }
                refreshToolbar();
            },
        })),
    ];
github quip / quip-apps / examples / countdown / src / root.jsx View on Github external
...colors.map(color => ({
            id: color,
            label: localizedColorLabel(color),
            handler: () => {
                quip.apps.getRootRecord().set("color", color);
                quip.apps.updateToolbarCommandsState([], [color]);
                quip.apps.recordQuipMetric("set_color");
            },
            isHeader: false,
        })),
    ];
github quip / quip-apps / examples / calendar / src / menus.js View on Github external
...colors.map(color => ({
            id: color,
            label: localizedColorLabel(color),
            handler: () => {
                selectedEvent.setColor(color);
                refreshToolbar();
            },
        })),
    ];

quip-apps-compat

Compat library for Quip Apps

Apache-2.0
Latest version published 4 years ago

Package Health Score

57 / 100
Full package analysis

Popular quip-apps-compat functions

Similar packages