Minor grammar fixes in custom card docs (#2381)

* Minor grammar fixes in custom card docs

* Adjust language

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Dave T 2024-10-16 10:15:37 +01:00 committed by GitHub
parent 12f889cdad
commit 9db1f3a120
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,7 @@ class ContentCardExample extends HTMLElement {
return 3; return 3;
} }
// The rules for your card for sizing your card if the grid in section view // The rules for sizing your card in the grid in sections view
getLayoutOptions() { getLayoutOptions() {
return { return {
grid_rows: 3, grid_rows: 3,
@ -106,7 +106,7 @@ return customElements
### Sizing in sections view ### Sizing in sections view
You card can define a `getLayoutOptions` method that returns the min, max and default number of cells your card will take in the grid if your card is used if the [sections view](https://www.home-assistant.io/dashboards/sections/) You can define a `getLayoutOptions` method that returns the min, max and default number of cells your card will take in the grid if your card is used in the [sections view](https://www.home-assistant.io/dashboards/sections/).
If you don't define this method, the card will take 4 columns (full width) and will ignore the rows of the grid. If you don't define this method, the card will take 4 columns (full width) and will ignore the rows of the grid.
A cell of the grid is defined with the following dimension: A cell of the grid is defined with the following dimension: