useCurrentIndex
Hook used to get the current index selected in a data object
Returns the current index selected in the data object.
Example
import { useCurrentIndex } from "@olenbetong/appframe-react";
function MyComponent() {
let index = useCurrentIndex(dsMyDataObject);
return <p>Displaying data for record {index}.</p>;
}API
export declare function useCurrentIndex(dataObject: DataObject<any>): number;Last updated
Was this helpful?