How to use the mashlib.widgets function in mashlib

To help you get started, we’ve selected a few mashlib 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 solid / solid-panes / home / index.html View on Github external
UI.outline.GotoSubject(me, true, pane, true, undefined)

    // @@ Here enable all kinds of stuff
    } else {
      tabulator.preferences.set('me', '')
      console.log('(SetUser: Logged out)')
      me = null
    }
  }

  var me_uri = tabulator.preferences.get('me')
  var me = me_uri ? kb.sym(me_uri) : null

  var userTest = $rdf.sym('https://databox.me/')

  UI.widgets.checkUser(userTest, setUser)

  var pane = UI.panes.home
  var target = me // @@ for now, in fact not relevant

  // subject, expand, pane, solo, referrer, table

})
github solid / solid-panes / home / app.js View on Github external
console.log('(SetUser: Logged in as ' + webid + ')')
      me = kb.sym(webid)
    // @@ Here enable all kinds of stuff
    } else {
      tabulator.preferences.set('me', '')
      console.log('(SetUser: Logged out)')
      me = null
    }
  }

  var me_uri = tabulator.preferences.get('me')
  var me = me_uri ? kb.sym(me_uri) : null

  var userTest = $rdf.sym('https://databox.me/')

  UI.widgets.checkUser(userTest, setUser)

  var pane = UI.panes.home
  var target = me // @@ for now, in fact not relevant

  // subject, expand, pane, solo, referrer, table
  UI.outline.GotoSubject(target, true, pane, true, undefined)
  // //////////////////////////////  Reproduction: spawn a new instance
  //
  // Viral growth path: user of app decides to make another instance
  //

  var newInstanceButtonDiv = function () {
    return UI.widgets.newAppInstance(dom,
      { noun: 'meeting',
        appPathSegment: appPathSegment},
      initializeNewInstanceInWorkspace)
github solid / solid-panes / home / app.js View on Github external
var newInstanceButtonDiv = function () {
    return UI.widgets.newAppInstance(dom,
      { noun: 'meeting',
        appPathSegment: appPathSegment},
      initializeNewInstanceInWorkspace)
  } // newInstanceButtonDiv

mashlib

Data mashup library

MIT
Latest version published 6 months ago

Package Health Score

56 / 100
Full package analysis