+
+ @_config?.PropertyName
+
+ Refresh
+
+
+
+
+
+ @if (!DisplaySelection) {
+ Add Entry
+ }
+
+
+
+
+ @if (DisplaySelection) {
+
+ @foreach (var model in _currentlyDisplayedModels) {
+
+
+
+ DialogData!.Object = model" Style="width: 20px"/>
+
+
+ }
+
+ }
+
+
+
+ @foreach (var property in _config!.Properties.Where(prop => prop.List)) {
+
+ }
+
+ @if (DisplayActions) {
+ var dataIndex = 0;
+
+
+ @{ var currentElement = _currentlyDisplayedModels.ElementAtOrDefault(dataIndex); }
+
+
+
+
+
+
+
+
+ @{
+ dataIndex++;
+ dataIndex %= 20;
+ }
+
+ }
+
+
+
+
+ @if (_totalPages > 1) {
+
+
+
+
+
+ Page
+
+
+
+ of @_totalPages
+
+
+
+
+
+ }
+
+
+
+
+@inject IContextExplorer Explorer
+@inject NavigationManager Navigator
+@inject IJSRuntime Js
+@inject IDialogService Dialogs
+
+@code {
+
+ [Parameter]
+ public required string TableName { get; set; }
+
+ [Parameter]
+ public bool DisplaySelection { get; set; }
+
+ [Parameter]
+ public bool DisplayActions { get; set; } = true;
+
+ [Parameter]
+ public RelationPickerDialogData? DialogData { get; set; }
+
+ [Parameter]
+ public int PerPage { get; set; } = 20;
+
+ private TableConfig? _config;
+ private ITableManager? _manager;
+
+ private IEnumerable