Skip to content

[request] Improve formatting #3297

Open
@SCsupercraft

Description

@SCsupercraft

Question you want answered

When looking through the list of methods certain methods, like onCloseRequested, are listed under platform-specific headings, although they are not platfrom-specific. This is because the platform-specific heading is bigger than the function it is referring to. Would it be possible to change the size of these platform-specific headings, so that there is no further confusion?

Where did you look for an answer?

I looked through the TOC (Table of Contents) for a way to detect when windows are closed, I came across onCloseRequested but saw that it was listed under a heading, which read 'platform-specific'. After clicking on the heading I saw that it was apparently unsupported on Linux, a OS that I wanted to support. Next, after seeing this I went to the discord to ask for methods that worked on Window, MacOS, and Linux. Shortly after I asked my question someone responded saying that the 'platform-specific' heading was only referring to the isMinimizable API, not the onCloseRequested method that was listed under said heading.

Page URL

https://v2.tauri.app/reference/javascript/api/namespacewindow/#methods-1

Additional context

An example

Are you willing to work on this yourself?

  • I want to work on this myself

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDoes it fix inaccurate content or fix a bug?discussDoes this require further discussion before it's dealt with?enhancementDoes it add or improve content?

    Type

    No type

    Projects

    Status

    🪵 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions