GithubHelp home page GithubHelp logo

renovate-bot / xwiki-contrib-_-jquery-sheet-amd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xwiki-contrib/jquery-sheet-amd

0.0 0.0 0.0 543 KB

Using Asynchronous Module Definition to include jquery.sheet in your project

JavaScript 41.35% PHP 4.18% CSS 1.69% HTML 52.79%

xwiki-contrib-_-jquery-sheet-amd's Introduction

jquery.sheet AMD

XWiki labs logo

Using Asynchronous Module Definition to include jquery.sheet in your project.

This is not complete, it's still in a proof of concept stage, tinkering will be needed.

Type ./do and the scripts will be linted and grouped into a common zip file.

How to include it.

This is it, get a checkout and try opening example.html for yourself.

NOTE: You will need to copy jquery in to the jqs directory or provide a different path.

<html>
<head>
<!-- Require.js, the only script which needs to be pulled in manually -->
<script type="text/javascript" src="require.js"></script>
<script type="text/javascript">
require.config({
      paths: {
          "jquery": "./jqs/jquery.min"
      }
});
</script>
</head>
<body>

<div id="injectSheetHere"></div>

<style>
#injectSheetHere > iframe {
    width:837px;
    height:410px;
    border:none;
</style>
<script type="text/javascript">

// Require and ye shall recieve
require([
    "jquery",
    "./jqs/main",
    "./jqs/emptysheet"
], function($, sheet, data) {
    sheet.inject($("#injectSheetHere")[0], {
        title: '',
        inlineMenu: undefined,
        buildSheet: true,
        editable: true,
        autoFiller: true,
        urlMenu: false,
        jqs_amd: {
            scrollTo: true,
            jQueryUI: true,
            raphaelJs: true,
            colorPicker: true,
            elastic: true,
            advancedMath: true,
            finance: true
        }
    }, function(thisSheet, jSheet) {
        // And when it's done loading, do this (open an empty sheet)
        thisSheet.openSheet(jSheet.makeTable.json(data.sheet));
    });
});
</script>
</body>
</html>

xwiki-contrib-_-jquery-sheet-amd's People

Contributors

cjdelisle avatar marclaporte avatar mouhb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.