diff --git a/ChangeLog.txt b/ChangeLog.txt index 7a8794c5..122b66bc 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,9 @@ +0.5.16 +Added 'New Features' layout to demo. +New tab attribute, helpText, to show tooltip over tabs. +New model action, deleteTabset, to delete a tabset and all it's child tabs. +New tabset attribute, enableClose, to close the tabset + 0.5.15 Added new Layout prop: onTabDrag that allows tab dragging to be intercepted. Added example of onTabDrag in demo app, example shows a list where tabs can be dragged into, diff --git a/examples/demo/App.tsx b/examples/demo/App.tsx index 1d11512d..bab43aa2 100755 --- a/examples/demo/App.tsx +++ b/examples/demo/App.tsx @@ -1,10 +1,10 @@ -import * as React from "react"; +import * as React from "react"; import { useCallback, useEffect, useRef, useState } from "react"; -import * as ReactDOM from "react-dom"; -import * as FlexLayout from "../../src/index"; +import * as ReactDOM from "react-dom"; +import * as FlexLayout from "../../src/index"; import { Action, Actions, BorderNode, DropInfo, IJsonTabNode, Node, Rect, TabNode, TabSetNode } from "../../src/index"; -import { ILayoutProps, ITabRenderValues, ITabSetRenderValues } from "../../src/view/Layout"; -import Utils from "./Utils"; +import { ILayoutProps, ITabRenderValues, ITabSetRenderValues } from "../../src/view/Layout"; +import Utils from "./Utils"; var fields = ["Name", "Field1", "Field2", "Field3", "Field4", "Field5"]; @@ -15,7 +15,7 @@ class App extends React.Component { @@ -137,7 +137,7 @@ class App extends React.Component) => { this.setState({ - realtimeResize: event.target.checked + realtimeResize: event.target.checked }); } @@ -198,9 +198,9 @@ class App extends React.Component { // log lifecycle events - //node.setEventListener("resize", function(p){console.log("resize");}); - //node.setEventListener("visibility", function(p){console.log("visibility");}); - //node.setEventListener("close", function(p){console.log("close");}); + //node.setEventListener("resize", function(p){console.log("resize", node);}); + //node.setEventListener("visibility", function(p){console.log("visibility", node);}); + //node.setEventListener("close", function(p){console.log("close", node);}); var component = node.getComponent(); @@ -316,7 +316,7 @@ class App extends React.Component this.onAddFromTabSetButton(node)} />); } @@ -372,6 +372,7 @@ class App extends React.Component