Skip to content

v6.2.18

Latest
Compare
Choose a tag to compare
@VahidFarahmandian VahidFarahmandian released this 06 Jun 16:13
· 15 commits to main since this release

What is included:

Jinget.Core

  • Using DbTypeUtility class you can now get the corresponding DbType for given .NET CLR types
  • Using UriExtensions's AddQuery extension method you can now add query string to your URLs like new Uri($"https://jinget.ir").AddQuery("name", "vahid")
  • Using OrderByDirectionUtility.Get method you can now get order by direction using string representation.

Jinget.Blazor

  • PreBindingFunction: user can define a method to run before BindingFunction.
  • BindingFunction: user can define a method to bind data into Combo Box. If GetTokenBeforeBinding is set to true, then before running the BindingFunction, ITokenStorageService.GetTokenAsync() method will be called to read the token from localStorage where localStorage key is equal to TokenConfigModel.TokenName. (See builder.Services.AddJingetBlazor();)
  • PostBindingFunction: user can define a method to run after BindingFunction.
  • JingetDynamicForm now have DynamicFields property, which returns a list of fields rendered on page.
  • JingetDynamicForm now have FindElement method which finds ekemnt by id or generic type.
  • JingetDynamicForm now have OnFieldReady event which raised whenever a field rendered on page.
  • Using ILocalStorageService you can interact with browser's localStorage.
  • Using ISessionStorageService you can interact with browser's sessionStorage.

Here are methods used to interact with these two browser storages:

  • GetItemAsync: Get item with specific key from storage.
  • GetAllAsync: Get all items from storage.
  • SetItemAsync: Set item to storage
  • UpsertItemAsync: Add or update item to storage
  • RemoveItemAsync: Remove item with specific key from storage
  • RemoveAllAsync: Remove all items from storage