🍬
Gummi
  • Welcome to Gummi
  • Installation
  • Repo
  • API Documentation
    • Core
      • Attributes
        • DisableIf(string Target)
        • DisableIf(string Target, object Benchmark)
        • EnableIf(string Target)
        • EnableIf(string Target, object Benchmark)
        • HideIf(string Target)
        • HideIf(string Target, object Benchmark)
        • ShowIfstring Target)
        • ShowIf(string Target, object Benchmark)
        • SOExposed
        • VisibleBaseAttribute
        • ReadOnly
      • Extensions
        • GenericExtensions
        • IntExtensions
        • ListExtensions
    • MVC
      • RootController
      • SubController
      • SubController<enum, uiView>
      • UIView
    • Singletons
      • Singleton
      • Persistent Singleton
      • Lazy Singleton
      • Persistent Lazy Singleton
    • Utility
      • MDDocumentation
      • Optional
Powered by GitBook
On this page
  1. API Documentation
  2. Core
  3. Attributes

EnableIf(string Target)

PreviousDisableIf(string Target, object Benchmark)NextEnableIf(string Target, object Benchmark)

Last updated 3 years ago

namespace:

Inherits:

Summary

Enables editing the attached property if Target's value is null (or if a value type, default).

string _foo = null;

[EnableIf(nameof(_foo))]
public string RandomStr = "hello";
Gummi
VisibleBaseAttribute