minimumButton and maximumButton props for Window are weird (?)

2 posts, 1 answers
  1. Grant
    Grant avatar
    179 posts
    Member since:
    Jul 2016

    Posted 26 Jan Link to this post

    Hi Team, 

    How do I use the min/max button props for windows? Im trying to hide the buttons without success, I've tried these values with the following results:
    true/false - failed
    "true"/"false" - works, but theres a warning in the browser console. (If it doesnt appear at first, refresh the page)
    blank string - failed
    the letter 's' - works, no errors (this was an accident, some letters work, some dont. I didnt try them all)

    StackBlitz Demo


  2. Answer
    Stefan avatar
    3039 posts

    Posted 27 Jan Link to this post

    Hello, Grant,

    The type of these props is `React.ComponentType<any><any>`:

    This means that they are expecting a React component (class or function).

    If we have to hide them, we can return null:

    maximizeButton={()=> null}
    The idea of these props is to allow the developer to customize them or remove them similarity to how all other components have render functions to customize a part of the component.

    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at

Back to Top