Toolbar of a kendo-window as kendo-tile toolbar

1 Answer 152 Views
TileLayout ToolBar Window
Himura
Top achievements
Rank 1
Himura asked on 02 Nov 2023, 01:36 AM

Hi -

I've been trialing kendo UI for angular and it is pretty powerful

I would like to use the kendo-window toolbar as my kendo-tile "toolbar"

The main feature I want to leverage from the kendo-window doing so is the "Maximize" and "Close" features ("Minimize" should be disabled or better yet not visible)

I do want to use kendo-tile to leverage dragging and autoflow repositioning

Is there any way to do this?

Would greatly appreciate your help

Thanks

 

 

Himura
Top achievements
Rank 1
commented on 03 Nov 2023, 01:08 AM

Hi - any help on this would be greatly appreciated

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 06 Nov 2023, 12:13 PM

Hi Himura,

From what I understand, you would like to use our TileLayout component with its dragging and autoflow functionality with the addition of making the tile itself have the option to maximize or close. Do correct me if I am wrong.

Both features are not available built-in, but in general, they can be implemented in a way with some custom logic. An example of that would be to add a button with an icon "x" for closing and remove the specific tab from the collection of tabs:

https://stackblitz.com/edit/angular-hac4fn?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.module.ts

The same logic can be applied to increase the size of the specific tile by going to the specific TileItem and increasing its colSpan and rowSpan.

I hope this helps.

Regards,
Yanmario
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Himura
Top achievements
Rank 1
commented on 08 Nov 2023, 04:46 AM

Thanks Yanmario - this is exactly what i was looking for
Himura
Top achievements
Rank 1
commented on 10 Nov 2023, 02:24 AM | edited

Hi Yanmario - 

using rowSpan and colSpan doesn't seem to work as expected

The new maximized tile pushes all other tiles

Similarly if the tile is not in position (1, 1), it expands from its own positions which doesn't have the "maximize" effect

https://stackblitz.com/edit/angular-hac4fn-kdz7wh?file=src%2Fapp%2Fapp.component.ts

 

Yanmario
Telerik team
commented on 14 Nov 2023, 03:14 PM

Hi Himura,

Some other properties like row, col, and order might need to be explored to adjust the behavior and positioning of the specific tile, but that will really depend on the desired end result.

Can you provide more context on a specific action, detailing the current result and the desired end result? More clarity on the 'maximize' effect would also be helpful for me to better understand the requirement and attempt to adjust the example.

I'd like to mention that this is a custom implementation, and it might have some limitations since the component doesn't have a built-in functionality for this.

Regards,
Yanmario
Progress Telerik

Tags
TileLayout ToolBar Window
Asked by
Himura
Top achievements
Rank 1
Answers by
Yanmario
Telerik team
Share this question
or