Skip to content

Commit

Permalink
Deploying to gh-pages from @ c9b97d8 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jordond committed Nov 30, 2023
1 parent 7545851 commit f42f2ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div class="cover ">
<h1 class="cover"><span><span>item</span></span></h1>
</div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":grid:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="item.html"><span class="token function">item</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">key<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">span<span class="token operator">: </span><span class="token keyword"></span><a href="https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/grid/LazyGridItemSpanScope.html">LazyGridItemSpanScope</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/grid/GridItemSpan.html">GridItemSpan</a><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">contentType<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">content<span class="token operator">: </span><span><span class="token annotation builtin">@</span><a href="https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html"><span class="token annotation builtin">Composable</span></a>&nbsp;</span><span class="token keyword"></span><a href="../-lazy-drag-select-grid-item-scope/index.html">LazyDragSelectGridItemScope</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Item</a><span class="token operator">&gt;</span><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><span class="token punctuation">)</span></div><p class="paragraph">Adds a single item to the scope.</p><p class="paragraph">Wrapper around <a href="https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/grid/LazyGridScope.html#item-kotlin.Any?-kotlin.Function1[androidx.compose.foundation.lazy.grid.LazyGridItemSpanScope,androidx.compose.foundation.lazy.grid.GridItemSpan]?-kotlin.Any?-kotlin.Function1[androidx.compose.foundation.lazy.grid.LazyGridItemScope,kotlin.Unit]-">LazyGridScope.item</a>.</p><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":grid:dokkaHtmlPartial/commonMain" data-filterable-set=":grid:dokkaHtmlPartial/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>key</span></span></u></div></span></div><div><div class="title"><p class="paragraph">a stable and unique key representing the item. Using the same key for multiple items in the grid is not allowed. Type of the key should be saveable via Bundle on Android. If null is passed the position in the grid will represent the key. When you specify the key the scroll position will be maintained based on the key, which means if you add/remove items before the current visible item the item with the given key will be kept as the first visible one.</p></div></div></div></div><div class="table-row" data-filterable-current=":grid:dokkaHtmlPartial/commonMain" data-filterable-set=":grid:dokkaHtmlPartial/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>span</span></span></u></div></span></div><div><div class="title"><p class="paragraph">the span of the item. Default is 1x1. It is good practice to leave it <code class="lang-kotlin">null</code> when this matches the intended behavior, as providing a custom implementation impacts performance.</p></div></div></div></div><div class="table-row" data-filterable-current=":grid:dokkaHtmlPartial/commonMain" data-filterable-set=":grid:dokkaHtmlPartial/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span>content</span><wbr><span><span>Type</span></span></u></div></span></div><div><div class="title"><p class="paragraph">the type of the content of this item. The item compositions of the same type could be reused more efficiently. Note that null is a valid type and items of such type will be considered compatible.</p></div></div></div></div><div class="table-row" data-filterable-current=":grid:dokkaHtmlPartial/commonMain" data-filterable-set=":grid:dokkaHtmlPartial/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>content</span></span></u></div></span></div><div><div class="title"><p class="paragraph">the content of the item.</p></div></div></div></div></div><h4 class="">See also</h4><div class="table"><div class="table-row" data-filterable-current=":grid:dokkaHtmlPartial/commonMain" data-filterable-set=":grid:dokkaHtmlPartial/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><a href="https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/grid/LazyGridScope.html#item-kotlin.Any?-kotlin.Function1[androidx.compose.foundation.lazy.grid.LazyGridItemSpanScope,androidx.compose.foundation.lazy.grid.GridItemSpan]?-kotlin.Any?-kotlin.Function1[androidx.compose.foundation.lazy.grid.LazyGridItemScope,kotlin.Unit]-"><span>Lazy</span><wbr><span>Grid</span><wbr><span>Scope.</span><wbr><span>item</span></a></div></span></div><div></div></div></div></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":grid:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="item.html"><span class="token function">item</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">key<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">span<span class="token operator">: </span><span class="token keyword"></span><a href="https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/grid/LazyGridItemSpanScope.html">LazyGridItemSpanScope</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/grid/GridItemSpan.html">GridItemSpan</a><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">contentType<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">content<span class="token operator">: </span><span><span class="token annotation builtin">@</span><a href="https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html"><span class="token annotation builtin">Composable</span></a>&nbsp;</span><span class="token keyword"></span><a href="../-lazy-drag-select-grid-item-scope/index.html">LazyDragSelectGridItemScope</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Item</a><span class="token operator">&gt;</span><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><span class="token punctuation">)</span></div><p class="paragraph">Adds a single item to the scope.</p><p class="paragraph">Wrapper around <a href="https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/grid/LazyGridScope.html#item">LazyGridScope.item</a>.</p><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":grid:dokkaHtmlPartial/commonMain" data-filterable-set=":grid:dokkaHtmlPartial/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>key</span></span></u></div></span></div><div><div class="title"><p class="paragraph">a stable and unique key representing the item. Using the same key for multiple items in the grid is not allowed. Type of the key should be saveable via Bundle on Android. If null is passed the position in the grid will represent the key. When you specify the key the scroll position will be maintained based on the key, which means if you add/remove items before the current visible item the item with the given key will be kept as the first visible one.</p></div></div></div></div><div class="table-row" data-filterable-current=":grid:dokkaHtmlPartial/commonMain" data-filterable-set=":grid:dokkaHtmlPartial/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>span</span></span></u></div></span></div><div><div class="title"><p class="paragraph">the span of the item. Default is 1x1. It is good practice to leave it <code class="lang-kotlin">null</code> when this matches the intended behavior, as providing a custom implementation impacts performance.</p></div></div></div></div><div class="table-row" data-filterable-current=":grid:dokkaHtmlPartial/commonMain" data-filterable-set=":grid:dokkaHtmlPartial/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span>content</span><wbr><span><span>Type</span></span></u></div></span></div><div><div class="title"><p class="paragraph">the type of the content of this item. The item compositions of the same type could be reused more efficiently. Note that null is a valid type and items of such type will be considered compatible.</p></div></div></div></div><div class="table-row" data-filterable-current=":grid:dokkaHtmlPartial/commonMain" data-filterable-set=":grid:dokkaHtmlPartial/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>content</span></span></u></div></span></div><div><div class="title"><p class="paragraph">the content of the item.</p></div></div></div></div></div><h4 class="">See also</h4><div class="table"><div class="table-row" data-filterable-current=":grid:dokkaHtmlPartial/commonMain" data-filterable-set=":grid:dokkaHtmlPartial/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><a href="https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/grid/LazyGridScope.html#item"><span>Lazy</span><wbr><span>Grid</span><wbr><span>Scope.</span><wbr><span>item</span></a></div></span></div><div></div></div></div></div></div></div>
</div>
<div class="footer">
<span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2023 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span>
Expand Down
Loading

0 comments on commit f42f2ac

Please sign in to comment.