Skip to content

Releases: girder/girder_web_components

@girder/components v3.2.0

15 Mar 17:35
acdd05a
Compare
Choose a tag to compare

Migration guide

3.2.0 introduces a small breaking change for DataBrowser, FileManager, and DataTable. If you were previously using the row-widget slot, that slot has been renamed to row, and now allows you to modify the presentation of the row text.

An example of how to use the new slot can be found in the demo

@girder/components 3.0.0

08 Jan 16:12
b336ad1
Compare
Choose a tag to compare

Changelog

  • Components explicitly renamed to Girder*. No need to rename on import
  • All imports provided from project index. No need to provide path within library.
  • registerComponents helper function
  • typescript type definitions

Migration Guide

Imports

Old

// Plugin, RestClient, Vuetify
import Girder, { RestClient, vuetify } from '@girder/components/src';
// Components
import { Authentication as GirderAuthentication } from '@girder/components/src/components'

New

// Plugin, RestClient, Vuetify
import Girder, { RestClient, vuetify } from '@girder/components/src';
// Components
import { GirderAuthentication } from '@girder/components/src';

registerComponents

Adds a simple helper function to register the main components globally, so you can do this:

// main.js
import { registerComponents } from '@girder/components/src';
registerComponents();

// App.vue
// No import necessary!
<template>
  <girder-file-manager />
</template>

If you have problems with CSS imports and things don't look right, check out #305