Skip to content

Commit f42f2ac

Browse files
committed
Deploying to gh-pages from @ c9b97d8 🚀
1 parent 7545851 commit f42f2ac

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

grid/com.dragselectcompose.grid/-lazy-drag-select-grid-scope/item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<div class="cover ">
6464
<h1 class="cover"><span><span>item</span></span></h1>
6565
</div>
66-
<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>
66+
<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>
6767
</div>
6868
<div class="footer">
6969
<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>

0 commit comments

Comments
 (0)